Documentation
¶
Overview ¶
Package updatecheck provides a notify-only, non-blocking, opt-out check for newer releases of suve on GitHub.
The public entry point is Notice, which returns a one-line update notice (or an empty string when there is nothing to report). It is deliberately side-effect-light: it only reads and writes a small cache file under ~/.suve, and it is safe and silent on ANY error (network, parse, filesystem). It never panics, never blocks meaningfully (a short HTTP timeout bounds the single network call, which itself happens at most once per 24h), and never surfaces an error to the caller.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Notice ¶
Notice returns a one-line update notice when a newer release of mpyw/suve is available, or "" when there is nothing to report, the check is disabled, the build is a dev build, or any error occurs. It is safe to call on every invocation: the result is cached for 24h, so at most one network call is made per day.
Types ¶
This section is empty.