Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AvailableUpdates ¶
func AvailableUpdates(repoOrg string, repoName string, currentVersion string) (avail bool, newVersion string, releaseURL string, err error)
AvailableUpdates returns true (along with a release URL) if there is an update available in the specified repo which is newer than the currentVersion string. Dev builds never report an update, and skip the GitHub API call entirely.
func IsUpdateNeeded ¶
IsUpdateNeeded returns true if the modification date on filepath is older than the duration specified.
func ResetUpdateTime ¶
ResetUpdateTime resets the file modification date on filepath by removing and re-creating the file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.