Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupOldBinaries ¶
func CleanupOldBinaries(binaryPath string)
CleanupOldBinaries removes .old files left by previous Windows updates.
func FindBinaryPath ¶
FindBinaryPath returns the absolute path of a binary using exec.LookPath.
func GetToken ¶
func GetToken() string
GetToken returns a GitHub token from the GITHUB_TOKEN or GH_TOKEN environment variable.
func NeedsUpdate ¶
NeedsUpdate compares current version against the latest release tag. Both may optionally have a "v" prefix.
func UpdateBinary ¶
UpdateBinary downloads the asset from its API URL and replaces the binary at binaryPath. For private repos, the token is required to authenticate the download.
Types ¶
Click to show internal directories.
Click to hide internal directories.