func PrintVersionInfo(name string)
PrintVersionInfo show version info to Stdout
Info contains versioning information.
type Info struct { GitVersion string `json:"gitVersion"` GitCommit string `json:"gitCommit"` BuildDate string `json:"buildDate"` GoVersion string `json:"goVersion"` Compiler string `json:"compiler"` Platform string `json:"platform"` }
func Get() Info
Get returns the overall codebase version. It's for detecting what code a binary was built from.
func (info Info) String() string
String returns info as a human-friendly version string.