Documentation
¶
Overview ¶
Package version provides the version command.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version = "dev" Commit = "none" Date = "unknown" BuiltBy = "unknown" )
These variables are set via -ldflags during the build process.
View Source
var VersionCmd = NewVersionCmd()
VersionCmd represents the version command.
Functions ¶
func NewVersionCmd ¶
NewVersionCmd creates and configures the `version` command.
Types ¶
type Info ¶
type Info struct {
Version string `json:"version" yaml:"version"`
Commit string `json:"commit" yaml:"commit"`
Date string `json:"date" yaml:"date"`
GoVersion string `json:"goVersion" yaml:"goVersion"`
OS string `json:"os" yaml:"os"`
Arch string `json:"arch" yaml:"arch"`
BuiltBy string `json:"builtBy" yaml:"builtBy"`
}
Info represents the build information.
Click to show internal directories.
Click to hide internal directories.