Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CacheEntry ¶
type CacheEntry struct {
CheckedAt time.Time `json:"checkedAt"`
LatestVersion string `json:"latestVersion"`
}
CacheEntry holds the cached version check result.
func Load ¶
func Load() *CacheEntry
Load reads the cache entry if it exists and has not expired. Returns nil if the cache is missing or stale.
Click to show internal directories.
Click to hide internal directories.