Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // GitCommit contains the git commit of this version. GitCommit = "" // Appendix is appended after a hypen to the version string. Appendix = "" )
The GitCommit and Appendix variable are set via the go linker (go build -ldflags -X [...]).
View Source
var CurSemVer = SemVer{}
CurSemVer is the current version
Functions ¶
func LoadPackageVars ¶
func LoadPackageVars() error
LoadPackageVars parses the rawVersion, GitCommit and Appendix package variables and initializes CurSemVer accordingly.
Types ¶
Click to show internal directories.
Click to hide internal directories.