package
Version:
v0.1.4
Opens a new window with list of versions in this module.
Published: Mar 2, 2026
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
DefaultTTL is the default time-to-live for cache entries.
DefaultPath returns the default cache file path (~/.gogitup.cache).
IsExpired checks if a cache entry is older than the given TTL.
Remove removes the cache entry for the given app name.
Save writes the cache to the given file path.
Set sets the cache entry for the given app name with the current time.
type Cache struct {
Entries map[string]Entry `yaml:"entries"`
}
Cache represents the gogitup cache file.
Load reads and parses the cache file at the given path.
If the file does not exist, an empty Cache is returned without error.
type Entry struct {
LatestVersion string `yaml:"latest_version"`
CheckedAt time.Time `yaml:"checked_at"`
}
Entry represents a cached version check result for an application.
Get returns the cache entry for the given app name and whether it was found.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.