Documentation
¶
Overview ¶
Package update fetches the latest dac release tag from GitHub and caches it under ~/.dac/update-check.json so subsequent runs avoid the network round-trip. The result drives a one-line "update available" nudge printed at the end of a command.
Disable with DAC_NO_UPDATE_CHECK=1 or DO_NOT_TRACK=1.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Channel ¶
type Channel string
Channel describes which release stream the current binary tracks.
type Checker ¶
type Checker struct {
// contains filtered or unexported fields
}
Checker drives an asynchronous update check. Construct with NewChecker.
func NewChecker ¶
NewChecker returns a Checker configured for real-world use. Returns nil if the current version is not eligible for nudging (dev/test builds, opt-out).
Click to show internal directories.
Click to hide internal directories.