Documentation
¶
Index ¶
Constants ¶
View Source
const ExtraSep = "-"
ExtraSep separates semver version from any extra version info
Variables ¶
View Source
var BuildDate = ""
BuildDate is the time of the build with format yyyy-mm-ddThh:mm:ssZ. It will be set by the linker.
View Source
var GitCommit = ""
GitCommit is the short commit hash. It will be set by the linker.
View Source
var PreReleaseID = ""
PreReleaseID can be empty for releases, "rc.X" for release candidates and "dev" for snapshots
View Source
var Version = "0.11.0"
Version is the version number in semver format X.Y.Z
Functions ¶
func ParsePctlVersion ¶
func ParsePctlVersion(raw string) (*semver.Version, error)
ParsePctlVersion parses the pctl version as semver while ignoring extra build metadata
Types ¶
type BuildMetadata ¶
type BuildMetadata struct {
BuildDate string
GitCommit string
}
BuildMetadata contains the semver build metadata: short commit hash and date in format YYYYMMDDTHHmmSS
Click to show internal directories.
Click to hide internal directories.