Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckForUpdate ¶
CheckForUpdate queries GitHub for the latest release, using a 24h cache. Returns the latest version string (e.g. "v0.2.0") or "" if current is up to date.
func SelfUpdate ¶
SelfUpdate downloads and replaces the current binary with the latest release.
Types ¶
type Asset ¶
type Asset struct {
Name string `json:"name"`
BrowserDownloadURL string `json:"browser_download_url"`
Size int64 `json:"size"`
}
Asset represents a release asset (binary archive).
Click to show internal directories.
Click to hide internal directories.