Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Build information - these will be set via ldflags during build Version = "dev" Commit = "unknown" Date = "unknown" BuiltBy = "unknown" GoVersion = runtime.Version() )
Functions ¶
Types ¶
type Info ¶
type Info struct {
Version string `json:"version"`
Commit string `json:"commit"`
Date string `json:"date"`
BuiltBy string `json:"built_by"`
GoVersion string `json:"go_version"`
Platform string `json:"platform"`
}
Info holds version information
func (Info) ShortString ¶
ShortString returns a short version string
Click to show internal directories.
Click to hide internal directories.