Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version = "dev" Commit = "none" Date = "unknown" GoVersion = runtime.Version() )
These are set at build time via -ldflags.
Functions ¶
func CheckForUpdate ¶
CheckForUpdate checks GitHub for a newer release.
func UpdateCommand ¶
func UpdateCommand() string
UpdateCommand returns the suggested install command.
Types ¶
type GitHubRelease ¶
type GitHubRelease struct {
TagName string `json:"tag_name"`
}
GitHubRelease represents a GitHub release API response.
Click to show internal directories.
Click to hide internal directories.