Documentation
¶
Overview ¶
Package version reports the build version of understackctl.
Release builds have these values stamped in by the linker (see .goreleaser.yaml). Builds produced any other way -- `go install github.com/rackerlabs/understackctl@v0.1.0`, or `go build` inside a checkout -- fall back to the module and VCS metadata that the Go toolchain records in the binary, so that `understackctl version` is useful in a bug report no matter how the binary was obtained.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct {
Version string `json:"version"`
Commit string `json:"commit"`
Date string `json:"date"`
GoVersion string `json:"goVersion"`
Platform string `json:"platform"`
}
Info describes the running binary.
func Get ¶
func Get() Info
Get resolves build information, preferring linker-stamped values and falling back to the toolchain's embedded build info.