version

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 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 version reports the build version, set at release time with -ldflags "-X github.com/TerracodeBA/vx/internal/version.Version=v0.1.0 ...".

Index

Constants

View Source
const Header = "X-Vx-Version"

Header is the request header in which the CLI sends its version.

View Source
const MinCLIVersion = "0.1.0"

MinCLIVersion is the oldest vx CLI this server works with. A server refuses requests from older release builds with an "update vx" error. Raise it when the server stops understanding what older CLIs send.

Variables

View Source
var (
	Version = "dev"
	Commit  = ""
	Date    = ""
)

Set by the release build.

Functions

func Compare added in v0.2.0

func Compare(a, b string) (int, bool)

Compare compares two release versions like 0.3.1 or v0.3.1-rc.1 and returns -1, 0 or 1. ok is false when either is not a release version.

func IsDev added in v0.2.0

func IsDev(v string) bool

IsDev reports whether v is not a release version: "dev", empty, or anything that does not parse as one. Dev builds are never refused and never told to update.

func String

func String() string

String returns a one-line description of the build.

Types

This section is empty.

Jump to

Keyboard shortcuts

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