Documentation
¶
Overview ¶
Package buildinfo carries version metadata stamped into the binary at link time.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version is the released semver tag, or "dev" for an unreleased build. Version = "dev" // Commit is the git SHA the binary was built from. Commit = "none" // Date is the RFC3339 build timestamp. Date = "unknown" )
Values injected via -ldflags by GoReleaser. Defaults apply to `go build` and `go run`, which do not set them.
Functions ¶
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"`
}
Info is the machine-readable form of the build metadata, used by `fft version --output json`.
Click to show internal directories.
Click to hide internal directories.