Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Commit = ""
Commit is the git commit hash of the build. This variable is set at build time using ldflags. Default value is empty string if not set during build.
View Source
var Version = "dev"
Version is the version of the application. This variable is set at build time using ldflags. Default value is "dev" if not set during build.
Functions ¶
func GetVersion ¶
func GetVersion() string
GetVersion returns the version string. If Version is "dev" and Commit is empty, attempts to read version from runtime/debug.BuildInfo (for go install builds). If Commit is set, it appends the commit hash to the version.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.