Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareVersions ¶
CompareVersions returns 1 if a > b, -1 if a < b, 0 if equal. Both versions may optionally start with "v".
func DownloadURLForVersion ¶
DownloadURLForVersion returns the download URL for a specific version. ver may optionally include the "v" prefix (e.g. "0.3.0" or "v0.3.0").
Types ¶
type ReleaseInfo ¶
ReleaseInfo holds the latest release version and the download URL for the current platform.
func CheckLatest ¶
func CheckLatest() (*ReleaseInfo, error)
CheckLatest resolves the latest release by following the /releases/latest redirect, extracting the version tag from the final URL. This avoids the GitHub API rate limit.
Click to show internal directories.
Click to hide internal directories.