Documentation
¶
Overview ¶
Package update provides self-update functionality using GitHub releases.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Updater ¶
type Updater struct {
CurrentVersion string
RepoOwner string
RepoName string
// contains filtered or unexported fields
}
Updater checks for and applies self-updates from GitHub releases.
func (*Updater) ApplyUpdate ¶
ApplyUpdate downloads the release binary and replaces the running executable.
func (*Updater) CheckForUpdate ¶
CheckForUpdate queries the GitHub releases API for the latest release. Returns nil, nil when already on the latest version.
Click to show internal directories.
Click to hide internal directories.