Documentation
¶
Overview ¶
Package version exposes cadish's build/version information.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Commit = ""
Commit is the full git commit the binary was built from, stamped at release time via -ldflags "-X .../internal/version.Commit={{.FullCommit}}". When unset (a plain `go build`), the VCS revision from the embedded build info is used.
var Date = ""
Date is the build/commit date (RFC3339), stamped at release time via -ldflags "-X .../internal/version.Date={{.CommitDate}}". When unset, the VCS time from the embedded build info is used.
var Version = "dev"
Version is the released version string. It is overridden at release time via -ldflags "-X github.com/cadi-sh/cadish/internal/version.Version=vX.Y.Z". For development builds it stays "dev"; String() then falls back to the module version embedded by the Go toolchain (so `go install …@vX.Y.Z` reports vX.Y.Z), and to the VCS revision/time, from the embedded build info.
Functions ¶
Types ¶
This section is empty.