Registry / utility / inconshreveable-go-update-v0

inconshreveable-go-update-v0

JSON →
library0.0.0-20150814200126-d8b0b1d421aagogounverified

Allows a Go program to update itself by replacing its executable file with a new version.

go get gopkg.in/inconshreveable/go-update.v0
INSTALL
IMPORT
SIG · INCONSHREVEABLE-GO
I
inconshreveable-go-update-v0
utilitygov0.0.0-20150814200126-d8b0b1d421aa
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
gopkg.in/inconshreveable/go-update.v0

Apply a self-update using the default options.

package main import ( "github.com/inconshreveable/go-update" ) func main() { err := update.Apply(nil, update.Options{}) if err != nil { panic(err) } }
Debug
Known issues
gotchaSelf-updating can be dangerous if the update source is compromised.
fix
Verify the integrity of the update binary before applying.
affects: all
Upgrade
Version history
0.0.0-20150814200126-d8b0b1d421aalatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

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