version

package
v3.32.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "DEV"

Functions

func CheckForUpdate added in v3.31.1

func CheckForUpdate(currentVersion string) (string, bool)

CheckForUpdate checks GitHub for the latest release and returns the latest version string and whether it is newer than currentVersion. Returns ("", false) silently on any error or if no update is available.

func Format

func Format(ver string) string

func FormatUpdateNudge added in v3.31.1

func FormatUpdateNudge(latestVersion string) string

FormatUpdateNudge returns the nudge message for display.

Types

type VersionCmd

type VersionCmd struct{}

func (*VersionCmd) Run

func (c *VersionCmd) Run() error

Jump to

Keyboard shortcuts

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