Documentation ¶ Index ¶ type Info func Check(ctx context.Context, statePath, currentVersion string, ...) (*Info, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Info ¶ type Info struct { IsUpdate bool CurrentVersion string LatestVersion string LatestReleaseURL string } Info describes an update. func Check ¶ func Check(ctx context.Context, statePath, currentVersion string, checkInterval time.Duration) (*Info, error) Check checks for updates if the last check was older than checkInterval. The last update check time is tracked in the file at statePath. Returns nil if no check was performed. Source Files ¶ View all Source files check.go Click to show internal directories. Click to hide internal directories.