Registry /
utility / rhysd-go-github-selfupdate
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.