Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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 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.
Click to show internal directories.
Click to hide internal directories.