Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version - The semantic version in string form Version string // GitCommit - The commit id at compile time GitCommit string // GitDirty - Was the commit dirty at compile time GitDirty string // CompiledAt - When was this binary compiled CompiledAt string )
View Source
var ( // GithubReleasesURL - Check this Github releases API for updates GithubReleasesURL string )
Functions ¶
func SemanticVersion ¶
func SemanticVersion() []int
SemanticVersion - Get the structured sematic version
Types ¶
type Release ¶
type Release struct { ID int `json:"id"` Name string `json:"name"` URL string `json:"url"` HTMLURL string `json:"html_url"` TagName string `json:"tag_name"` Body string `json:"body"` Prerelease bool `json:"prerelease"` TarballURL string `json"tarball_url"` ZipballURL string `json"zipball_url"` CreatedAt string `json:"created_at"` PublishedAt string `json:"published_at"` }
Release - A single Github release object https://developer.github.com/v3/repos/releases/
func CheckForUpdates ¶
CheckForUpdates - Checks Github releases for newer versions, if any error occurs we don't really try to recover. If client is nil we just use the Go default client with default settings.
Click to show internal directories.
Click to hide internal directories.