Documentation ¶
Overview ¶
Package version provides the version and build information.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Info ¶
type Info struct { Name string `json:"name"` // name of the program Version string `json:"version"` // BuildInfo's module version Commit string `json:"commit"` // BuildInfo's vcs.revision BuiltAt string `json:"built_at"` // BuildInfo's vcs.date Dirty bool `json:"dirty"` // BuildInfo's vcs.modified Go string `json:"go"` // runtime.Version() OS string `json:"os"` // runtime.GOOS Arch string `json:"arch"` // runtime.GOARCH }
Info is the version and build information of the current binary.
Click to show internal directories.
Click to hide internal directories.