Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommitHash ¶
func CommitHash() string
CommitHash returns a string representing the current commitHash.
func FullVersion ¶
func FullVersion() string
FullVersion returns a string representing the version and commit hash concatenated separated by a '-'.
Returns only the version if the commit hash is not defined.
func SetCommitHash ¶
func SetCommitHash(hash string)
SetCommitHash sets the commit hash of the application to the value provided as hash. Empty values are accepted.
func SetVersion ¶
func SetVersion(ver string)
SetVersion sets the version to tha value provided as ver unless ver is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.