upgrade

package
v1.235.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package upgrade renders installation-aware Atmos update notices.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareVersions

func CompareVersions(current, latest string) (order int, ok bool)

CompareVersions orders current against latest by semantic version, accepting a leading "v". It returns -1, 0, or 1; ok is false when either version is unparsable (for example, the development version "test"). A prerelease sorts before its release.

func NewerRelease

func NewerRelease(current, latest string) (string, bool)

NewerRelease returns latest without a leading "v" only when it is strictly newer than current. Equal, older, and unparsable versions never produce an update suggestion, so a newer build or prerelease is never told to "update" to an older release.

func PrintNotice

func PrintNotice(currentVersion, latestVersion string, hint installer.Hint)

PrintNotice displays upgrade guidance on the UI channel (stderr).

Types

This section is empty.

Jump to

Keyboard shortcuts

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