Documentation
¶
Overview ¶
Package selfupdate performs a best-effort check for a newer released disbug CLI and formats an upgrade nudge. It never blocks or fails a command: any error, missing network, or unparseable version simply yields no notice.
Index ¶
Constants ¶
View Source
const CheckInterval = 24 * time.Hour
CheckInterval bounds how often the network is consulted for the latest release.
Variables ¶
This section is empty.
Functions ¶
func GitHubLatest ¶
GitHubLatest returns the latest disbug release tag from GitHub. It is the default FetchFunc used by Notice in released builds. The timeout is short and all errors are returned to the caller, which treats them as "no notice".
Types ¶
Click to show internal directories.
Click to hide internal directories.