Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version = "" Commit = "" Date = "" )
Version, Commit, and Date are set via -ldflags at build time.
Version falls back to Go module build info when the binary was produced without ldflags (e.g. `go install`, `go run`), and finally to "dev" for a working-copy build. Commit and Date have no useful runtime fallback — an empty string means "unknown" and callers render it as such.
The Makefile injects Version only; GoReleaser injects all three on tagged releases.
Functions ¶
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.