version

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version   = "dev"
	Commit    = "none"
	Date      = "unknown"
	GoVersion = runtime.Version()
)

These are set at build time via -ldflags.

Functions

func CheckForUpdate

func CheckForUpdate() (latest string, available bool, err error)

CheckForUpdate checks GitHub for a newer release.

func Full

func Full() string

Full returns detailed version info.

func Info

func Info() string

Info returns a short version string.

func UpdateCommand

func UpdateCommand() string

UpdateCommand returns the suggested install command.

Types

type GitHubRelease

type GitHubRelease struct {
	TagName string `json:"tag_name"`
}

GitHubRelease represents a GitHub release API response.

Jump to

Keyboard shortcuts

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