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" // GitCommit is the git commit of the binary. GitCommit = "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"` GitCommit string `json:"gitCommit"` 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.
func (BuildInfo) MarshalJSON ¶ added in v0.15.2
MarshalJSON implements json.Marshaler.
func (BuildInfo) PrettyJSON ¶ added in v0.15.2
PrettyJSON returns the current build information as a pretty-printed JSON string.
Click to show internal directories.
Click to hide internal directories.