Documentation
¶
Index ¶
- func Get() string
- func GetLatestRelease(updater *selfupdate.Updater) (*selfupdate.Release, error)
- func IsLatest(current string, latest *selfupdate.Release) bool
- func IsSet() bool
- func NewUpdater() (*selfupdate.Updater, error)
- func Update(current string, latest *selfupdate.Release, updater *selfupdate.Updater) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
func Get() string
Get returns the embedded build version (e.g. "v3.0.0"), or "" in dev builds where version.txt has not been generated.
func GetLatestRelease ¶
func GetLatestRelease(updater *selfupdate.Updater) (*selfupdate.Release, error)
func IsSet ¶
func IsSet() bool
IsSet reports whether a build version was embedded. Update checks are skipped when it is not, so dev builds never reach out to GitHub.
func NewUpdater ¶
func NewUpdater() (*selfupdate.Updater, error)
func Update ¶
func Update(current string, latest *selfupdate.Release, updater *selfupdate.Updater) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.