Registry / utility / getlantern-go-update

getlantern-go-update

JSON →
library0.0.0-20230221120840-8d795213a8bcgogounverified

Package go-update allows a program to update itself by replacing its executable file with a new version.

go get github.com/getlantern/go-update
INSTALL
IMPORT
SIG · GETLANTERN-GO-UPDA
G
getlantern-go-update
utilitygov0.0.0-20230221120840-8d795213a8bc
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.

update
✓ github.com/getlantern/go-update

Self-update from a URL

package main import ( "github.com/getlantern/go-update" ) func main() { err := update.New().FromUrl("https://example.com/new-binary") if err != nil { panic(err) } }
Debug
Known issues
gotchaUpdate requires write permissions to the executable directory
fix
Check CanUpdate() before attempting update
affects: all
Upgrade
Version history
0.0.0-20230221120840-8d795213a8bclatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
getlantern-go-update — go get getlantern-go-update · libregistry