Help us shape the future of Go! Take the 2026 Go Developer Survey

update

package
v1.39.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UpdateCacheFile = "update.json"
)

Variables

This section is empty.

Functions

func CheckForUpdates

func CheckForUpdates(currentVersion string, logger *zerolog.Logger)

CheckForUpdates fetches the latest release from GitHub and compares it to the current version. If a newer version is found, it prints a message to os.Stderr. This function is designed to be run in a goroutine so it doesn't block the main CLI execution.

Types

This section is empty.

Jump to

Keyboard shortcuts

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