Documentation ¶
Overview ¶
Package version provides build version information.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // VersionString gets defined by the build system. VersionString = "0.0.0" // VersionMajor is the current major version. VersionMajor int64 // VersionMinor is the current minor version. VersionMinor int64 = 1 // VersionPatch is the current patch version. VersionPatch int64 // VersionPre indicates a pre release tag. VersionPre = "alpha" // VersionDev indicates the current commit. VersionDev = "0000000" // VersionDate indicates the build date. VersionDate = "20190214" // Version is the version of the current implementation. Version *semver.Version )
Functions ¶
This section is empty.
Types ¶
type BuildInfo ¶
type BuildInfo struct { Version string `json:"version"` User string `json:"user"` Host string `json:"host"` GoVersion string `json:"goVersion"` BuildStatus string `json:"status"` BuildDate string `json:"buildDate"` Compiler string `json:"compiler"` Platform string `json:"platform"` }
BuildInfo describes version information about the binary build.
var ( // Info exports the build version information. Info BuildInfo )
Click to show internal directories.
Click to hide internal directories.