Documentation
¶
Overview ¶
Package upgrade implements self-update from GitHub releases.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Asset ¶
type Asset struct {
Name string `json:"name"`
BrowserDownloadURL string `json:"browser_download_url"`
Size int64 `json:"size"`
}
Asset is a single file attached to a GitHub release.
type CheckResult ¶
CheckResult is the result of a version check.
func Check ¶
func Check(current string) (*CheckResult, error)
Check compares current against the latest GitHub release tag and returns a CheckResult describing whether an update is available.
Click to show internal directories.
Click to hide internal directories.