Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // GitCommit contains the git commit of this version. // It's set by make. GitCommit = "" // Version contains a semantic version number, must follow // https://semver.org/. // It's set by make. Version = "" // Appendix is appended after a hypen to the version number. It can be // used to mark a build as a prerelease. Appendix = "" // CurSemVer is the current version CurSemVer = SemVer{} )
Functions ¶
func LoadPackageVars ¶ added in v0.11.1
func LoadPackageVars() error
LoadPackageVars parses the package variable and sets CurSemVer
Types ¶
type SemVer ¶
SemVer holds a semantic version
func FromString ¶ added in v0.11.1
FromString returns the SemVer representation of a string
Click to show internal directories.
Click to hide internal directories.