Documentation ¶
Overview ¶
Package version provides build time version information.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildInfo ¶
type BuildInfo struct { Version string `json:"version"` GitRevision string `json:"revision"` Branch string `json:"branch"` BuildUser string `json:"user"` BuildDate time.Time `json:"date"` GoVersion string `json:"go"` }
BuildInfo provides build information and metadata. It is Populated by Makefile at build-time using -ldflags -X. Symbol names are reported by 'go tool nm <binary object>". Note that unless the cluster of instances is completely homogeneous, different instances can return different values.
var Build BuildInfo
Build variable exposes the build-time information
Click to show internal directories.
Click to hide internal directories.