Documentation
¶
Overview ¶
Package update provides background version checking against GitHub releases. The check runs asynchronously and caches its result for 24 hours so it never adds latency to any command. A notice is printed to stderr when a newer version is available.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAsync ¶
CheckAsync fires a background goroutine that checks for a newer release. If one is found and the check has not been performed in the last 24 hours, it sends a human-readable notice to noticeC. The caller should drain noticeC after the command completes and print any message to stderr.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.