Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ReleaseInfoTimeout = time.Second * 1 Release = "https://api.github.com/repos/%s/releases/latest" )
Functions ¶
func IsCurrentLatest ¶
IsCurrentLatest returns true if the current version string is greater than or equal to latestVersion as per semantic versioning
func UpdateNotice ¶
UpdateNotice returns a notice message if there is a newer version available Note: all errors are ignored
Types ¶
type Info ¶
func ReleaseInfo ¶
ReleaseInfo fetches details related to provided release URL releaseURL should point to a specific version for example: https://api.github.com/repos/goto/optimus/releases/latest
Click to show internal directories.
Click to hide internal directories.