Documentation ¶
Index ¶
Constants ¶
View Source
const ExtraSep = "-"
ExtraSep separates semver version from any extra version info
Variables ¶
View Source
var PreReleaseID = "dev"
PreReleaseID can be empty for releases, "rc.X" for release candidates and "dev" for snapshots
View Source
var Version = "0.1.0"
Version is the version number in semver format X.Y.Z
Functions ¶
func NewCmdVersion ¶
Types ¶
type BuildMetadata ¶
BuildMetadata contains the semver build metadata: short commit hash and date in format YYYYMMDDTHHmmSS
type Info ¶
type Info struct { Version string PreReleaseID string Metadata BuildMetadata }
Info holds version information
Click to show internal directories.
Click to hide internal directories.