Documentation
¶
Overview ¶
Package version provides the canonical version string for the yaad binary.
Source of truth: the VERSION file at the repo root, and the matching git tag created by release-please. Release tooling injects the version into the binary at build time via ldflags:
go build -ldflags " \ -X github.com/GrayCodeAI/yaad/internal/version.Version=$(cat VERSION) \ -X github.com/GrayCodeAI/yaad/internal/version.Commit=$(git rev-parse --short HEAD) \ -X github.com/GrayCodeAI/yaad/internal/version.Date=$(date -u +%Y-%m-%dT%H:%M:%SZ)"
Goreleaser does this automatically during release builds. The defaults below ("dev", "none", "unknown") apply only to local builds without ldflags so a fresh `go build` still produces a runnable binary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Commit = "none"
Commit is the git commit short SHA. Set via ldflags at release time.
var Date = "unknown"
Date is the build date in RFC3339. Set via ldflags at release time.
var Version = "dev"
Version is the current version of yaad. Set via ldflags at release time.
Functions ¶
Types ¶
This section is empty.