Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version is the application version, which should be set to a valid semver string at build time. Version = "unknown" // GitCommitHash is the git commit hash of the current build, which should be set at build time. GitCommitHash = "unknown" // BuildTime is the time when the application was built, which should be set at build time. BuildTime = "unknown" )
Information about the current application build. These variables are set at build time using -ldflags "-X ...", and should not be changed in code.
Functions ¶
func BuildUserAgent ¶
func BuildUserAgent() string
BuildUserAgent builds a user agent string that includes the application version and build info.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.