Documentation ¶
Overview ¶
Package version contains compile-time version information.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version is the version of the binary. Version = "unknown" // Commit is the git commit of the binary. Commit = "unknown" // BuildDate is the date the binary was built. BuildDate = "unknown" )
Functions ¶
This section is empty.
Types ¶
type BuildInfo ¶ added in v0.13.0
type BuildInfo struct { Version string `json:"version"` Commit string `json:"commit"` BuildDate string `json:"buildDate"` }
BuildInfo is the current build information.
func GetBuildInfo ¶ added in v0.13.0
func GetBuildInfo() BuildInfo
GetBuildInfo returns the current build information.
Click to show internal directories.
Click to hide internal directories.