Embeds the git short hash and UTC build timestamp into both binaries via ldflags so it's easy to confirm which build is actually deployed, without needing to hand-maintain a version number. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
8 lines
171 B
Go
8 lines
171 B
Go
package version
|
|
|
|
// Set at build time via -ldflags (see Makefile). Defaults are used for
|
|
// `go run` / unbuilt binaries.
|
|
var (
|
|
Version = "dev"
|
|
BuildTime = "unknown"
|
|
)
|