Documentation ¶
Overview ¶
Package update provides the ability to check GitHub for the newest release tag.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Check ¶
Check the GitHub for the newest release tag. The returned string will only contain the newest available release tag if the local program version is out of date.
Types ¶
type Cache ¶
type Cache struct { Etag string `yaml:"etag"` // http etag header Version string `yaml:"version"` // semantic version }
Cache of the newest production release. The Etag string is used to check if the release has changed, by requesting a tiny HTTP header from the GitHub API instead of the full response.
Click to show internal directories.
Click to hide internal directories.