Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func PrintShortCleanVersionInfo ¶
func PrintShortCleanVersionInfo() string
func PrintShortDirtyVersionInfo ¶
func PrintShortDirtyVersionInfo() string
func PrintVerboseVersionInfo ¶
func PrintVerboseVersionInfo() string
Types ¶
type Info ¶
type Info struct { Major string `json:"major,omitempty"` Minor string `json:"minor,omitempty"` GitVersion string `json:"gitVersion,omitempty"` GitCommit string `json:"gitCommit,omitempty"` GitTreeState string `json:"gitTreeState,omitempty"` BuildDate string `json:"buildDate,omitempty"` GoVersion string `json:"goVersion,omitempty"` Compiler string `json:"compiler,omitempty"` Platform string `json:"platform,omitempty"` GitReleaseTag string `json:"gitReleaseTag,omitempty"` GitReleaseCommit string `json:"gitReleaseCommit,omitempty"` GitBranch string `json:"gitBranch,omitempty"` }
func GetVersionInfo ¶
func GetVersionInfo() Info
Click to show internal directories.
Click to hide internal directories.