Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var BuildDate = ""
BuildDate returns the date the binary was built
var ChangeLog string
ChangeLog returns the full changelog
var GitCommit string
GitCommit returns the git commit that was compiled. This will be filled in by the compiler.
var GoVersion = runtime.Version()
GoVersion returns the version of the go runtime used to compile the binary
OsArch returns the os and arch used to build the binary
var Version = "dev"
Version returns the main version number that is being run at the moment. Given a version number MAJOR.MINOR.PATCH, increment the:
MAJOR version when you make incompatible API changes, MINOR version when you add functionality in a backwards compatible manner, and PATCH version when you make backwards compatible bug fixes.
Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.
Functions ¶
func ExtractVersionFromChangelog ¶ added in v0.7.0
func ExtractVersionFromChangelog(changeLog string)
ExtractVersionFromChangelog is used to extract the latest version referenced in the Changelog, this is our version
Types ¶
This section is empty.