Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyUpdate ¶
func ApplyUpdate() error
ApplyUpdate downloads and installs the previously detected update. CheckForUpdate must be called first.
Types ¶
type UpdateInfo ¶
type UpdateInfo struct {
CurrentVersion string
LatestVersion string
IsNewer bool
IsPreRelease bool
ReleaseNotes string
}
UpdateInfo describes an available update.
func CheckForUpdate ¶
func CheckForUpdate(currentVersion string, includePre bool) (*UpdateInfo, error)
CheckForUpdate queries GitHub releases for a newer version. Returns nil info if already up to date.
Click to show internal directories.
Click to hide internal directories.