Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteContext ¶
func SetVersion ¶
func SetVersion(version, commit, buildTime string)
SetVersion records the build information main.go received through -X. Only goreleaser and the nix package set those, so `go install github.com/melqtx/ xeet@latest` would otherwise report "dev" forever. Fall back to the data the go tool stamps into every binary: the module version for `go install`, and the VCS revision/time for a plain `go build` in a checkout.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.