Registry / utility / rhysd-go-github-selfupdate

rhysd-go-github-selfupdate

JSON →
library1.2.3gogounverified

Go library for self-updating binaries from GitHub releases.

go get github.com/rhysd/go-github-selfupdate
INSTALL
IMPORT
SIG · RHYSD-GO-GITHUB-SE
R
rhysd-go-github-selfupdate
utilitygov1.2.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

selfupdate
github.com/rhysd/go-github-selfupdate

Updates the current binary to the latest GitHub release.

package main import ( "log" "github.com/rhysd/go-github-selfupdate" ) func main() { latest, err := selfupdate.UpdateSelf("v1.0.0", "owner/repo") if err != nil { log.Fatal(err) } log.Printf("Updated to %s", latest.Version) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.3latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
rhysd-go-github-selfupdate — go get rhysd-go-github-selfupdate · libregistry