Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version is the semantic version of bc4 Version = "dev" // GitCommit is the git commit hash GitCommit = "unknown" // BuildDate is the date when the binary was built BuildDate = "unknown" // GoVersion is the Go version used to build GoVersion = runtime.Version() )
These variables are set at build time using ldflags
Functions ¶
Types ¶
type Info ¶
type Info struct {
Version string `json:"version"`
GitCommit string `json:"gitCommit"`
BuildDate string `json:"buildDate"`
GoVersion string `json:"goVersion"`
Platform string `json:"platform"`
}
Info represents version information
func (Info) DetailedString ¶
DetailedString returns a detailed version string
Click to show internal directories.
Click to hide internal directories.