Versions in this module Expand all Collapse all v1 v1.2.0 Apr 6, 2026 Changes in this version + func CheckWritePermission(binaryPath string) error + func IsHomebrew(binaryPath string) bool + type Cache struct + func NewCache(dir string) *Cache + func (c *Cache) Path() string + func (c *Cache) Read() (*cacheData, error) + func (c *Cache) ShouldCheck(cooldown time.Duration) bool + func (c *Cache) Write(latestVersion, releaseURL string) error + type Checker struct + func NewChecker(currentVersion string, cache *Cache, logger *slog.Logger) *Checker + func (c *Checker) Check(ctx context.Context) (*Result, error) + func (c *Checker) CheckWithCooldown(ctx context.Context, cooldown time.Duration) (*Result, error) + func (c *Checker) FormatCheckOutput(r *Result) string + func (c *Checker) FormatNotification(r *Result) string + func (c *Checker) IsDev() bool + func (c *Checker) SetAPIURL(url string) + type ProgressFunc func(msg string) + type ReleaseAsset struct + BrowserDownloadURL string + Name string + type Result struct + Assets []ReleaseAsset + CurrentVersion string + LatestVersion string + ReleaseURL string + UpdateAvailable bool + type Updater struct + func NewUpdater(checker *Checker, logger *slog.Logger) *Updater + func (u *Updater) Update(ctx context.Context, binaryPath string, progress ProgressFunc) error