Versions in this module Expand all Collapse all v0 v0.13.0 Mar 10, 2026 Changes in this version + func CachePath(homeDir string) string + func CompareVersions(current, latest string) bool + func FetchLatestVersion(ctx context.Context, client *http.Client) (string, error) + func IsCacheFresh(entry *CacheEntry, now time.Time) bool + func WriteCache(homeDir string, entry *CacheEntry) error + type CacheEntry struct + CheckedAt time.Time + Latest string + func ParseCache(content string) *CacheEntry + func ReadCache(homeDir string) *CacheEntry + type Result struct + HasUpdate bool + Latest string + func Check(homeDir, currentVersion string) *Result