updatecheck

package
v1.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 9 Imported by: 0

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

func Notice(ctx context.Context, current string) string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL