Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildType ¶ added in v0.0.6
func BuildType() string
BuildType retuns whatever buildTime is set to by the linker.
func GitBranch ¶ added in v0.0.6
func GitBranch() string
GitBranch will return the envar, compiled-in var, or "dev" if none set. Often this is a tag, so will have a format such as `v1.0.2` or `v1.0.2-5-g12350123` for changes without a specific tag.
This can be used for "short" version strings, while VersionString would be more exact.
func GitHash ¶ added in v0.0.6
func GitHash() string
GitHash will return the envar, compiled-in var, or "dev" if none set.
func VersionString ¶ added in v0.0.6
func VersionString() string
VersionString returns a formatted version, git hash, and build type.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.