Documentation ¶
Overview ¶
Package upgrade downloads and compares releases, and upgrades the running binary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrVersionUpToDate = errors.New("current version is up to date") ErrVersionUnknown = errors.New("couldn't fetch release information") ErrUpgradeUnsupported = errors.New("upgrade unsupported") )
View Source
var GoArchExtra string // "", "v5", "v6", "v7"
Functions ¶
func CompareVersions ¶
Returns 1 if a>b, -1 if a<b and 0 if they are equal
Types ¶
Click to show internal directories.
Click to hide internal directories.