Documentation ¶
Overview ¶
Package version returns details on the Go and Git repo used in the build
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct { GoVer string `json:"goVersion"` // go version GoCompiler string `json:"goCompiler"` // go compiler Platform string `json:"platform"` // os/arch VCSCommit string `json:"vcsCommit"` // commit sha VCSDate string `json:"vcsDate"` // commit date in RFC3339 format VCSRef string `json:"vcsRef"` // commit sha + dirty if state is not clean VCSState string `json:"vcsState"` // clean or dirty VCSTag string `json:"vcsTag"` // tag is not available from Go Debug *debug.BuildInfo `json:"debug,omitempty"` // build info debugging data }
func (Info) MarshalPretty ¶
Click to show internal directories.
Click to hide internal directories.