Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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.
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.
Types ¶
This section is empty.