Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version string Commit string BuildTime string )
Version, Commit, and BuildTime are optional release-build overrides. Normal builds leave them empty and use the module and VCS metadata embedded by Go.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct {
Version string `json:"version"`
Commit string `json:"commit"`
BuildTime string `json:"build_time"`
// Modified is absent when the Go toolchain did not embed a vcs.modified
// setting. A nil value must not be interpreted as a clean checkout.
Modified *bool `json:"modified,omitempty"`
GoVersion string `json:"go_version"`
}
Click to show internal directories.
Click to hide internal directories.