updatecheck

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MaybeNotify

func MaybeNotify(ctx context.Context, stderr io.Writer, currentVersion string, style Style)

MaybeNotify checks whether a newer release is available and prints an update notice to stderr when a fresh cached result indicates the user should upgrade.

Types

type Style

type Style struct {
	Bold func(string) string
	Dim  func(string) string
}

Style controls optional terminal styling for the notice output.

Jump to

Keyboard shortcuts

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