Documentation ¶ Index ¶ func NewCommand(packageVersion string) *cobra.Command func Resolve(injected string) string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewCommand ¶ func NewCommand(packageVersion string) *cobra.Command func Resolve ¶ added in v1.0.4 func Resolve(injected string) string Resolve returns the version to report. It prefers the version injected at build time, then the module version recorded by `go install`, and falls back to "dev" for local builds. Types ¶ This section is empty. Source Files ¶ View all Source files version.go Click to show internal directories. Click to hide internal directories.