Documentation ¶
Overview ¶
Package selfupdate provides the selfupdate command.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Opt = Options{}
Opt is options set via command line
Functions ¶
func GetVersion ¶
func GetVersion(ctx context.Context, beta bool, version string) (newVersion, siteURL string, err error)
GetVersion can get the latest release number from the download site or massage a stable release number - prepend semantic "v" prefix or find the latest micro release for a given major.minor release. Note: this will not be applied to beta releases.
Types ¶
type Options ¶
type Options struct { Check bool Output string // output path Beta bool // mutually exclusive with Stable (false means "stable") Stable bool // mutually exclusive with Beta Version string Package string // package format: zip, deb, rpm (empty string means "zip") }
Options contains options for the self-update command
Click to show internal directories.
Click to hide internal directories.