Documentation
¶
Overview ¶
Package selfupdate replaces the running binary with the latest GitHub release after verifying its SHA-256 checksum.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNewer ¶ added in v1.2.0
IsNewer reports whether release version latest is strictly newer than the installed current. A plain string compare would "update" whenever the strings differ — downgrading a newer local/dev build, or re-installing an older release after the latest was yanked. semver.Compare needs a leading "v"; an unparseable current (e.g. a "dev" build) sorts below any real release, so it still updates.
Types ¶
Click to show internal directories.
Click to hide internal directories.