update

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package update checks GitHub Releases for a newer futils version — best effort, cached for a day, and never in the way of startup: the caller gives a small deadline, a fresh cache answers instantly, and a live check that loses the race still lands in the cache for the next launch.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Notice

func Notice(current string, deadline time.Duration) string

Notice returns a one-line upgrade hint ("v0.9.0 available — …") when a release newer than current exists, or "" — also on dev builds, unparseable versions, network failure, or when the deadline passes first. Safe to call on every interactive startup.

Types

This section is empty.

Jump to

Keyboard shortcuts

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