version

package
v0.703.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Variant = ""

Variant identifies the build variant of this binary: empty for the standard open-source build, "enterprise" for a build composed with private extension modules. It is set via -ldflags at release time and is informational only — which extensions a binary contains is decided at link time, not by this string.

View Source
var Version = "unknown"

Build-time parameters set via -ldflags

Functions

func Canonical added in v0.400.0

func Canonical() string

Canonical returns the version with a leading v when the current value is a semver.

func Display added in v0.700.0

func Display() string

Display returns the version as it should be shown to a human: the plain version for a standard build, and the version plus the variant name for a composed one.

Standard builds keep the exact output they always had, so anything parsing `pando --version` is unaffected; only a non-standard binary looks different, which is the whole point of the stamp.

func Normalize added in v0.416.13

func Normalize() string

Normalize returns the version as a clean semantic version string. The +dirty suffix from git is stripped if present, and "v" prefix is added on behalf of caller.

func Parse added in v0.400.0

func Parse(v string) (semver.Version, bool)

Parse parses a version string that may be prefixed with 'v'.

func Semver added in v0.400.0

func Semver() (semver.Version, bool)

Semver returns the current version parsed as semantic version.

Types

This section is empty.

Jump to

Keyboard shortcuts

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