Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckInBackground ¶
func CheckInBackground()
CheckInBackground spawns a goroutine to fetch the latest version from GitHub and write it to the cache file. Non-blocking — if the command exits before the fetch completes, the cache is simply not updated.
Types ¶
type UpdateInfo ¶ added in v1.6.0
UpdateInfo holds version comparison results for the caller to format.
func GetUpdateInfo ¶ added in v1.6.0
func GetUpdateInfo(currentVersion string) *UpdateInfo
GetUpdateInfo reads the cached latest version and returns update info if a newer version is available. Returns nil if no update is needed.
Click to show internal directories.
Click to hide internal directories.