Documentation
¶
Overview ¶
Package version exposes the release tag stamped into the binary at build time via -ldflags "-X github.com/1995parham/natsie/internal/version.Version=vX.Y.Z".
Local `go build` leaves Version as "dev"; the CI Docker image build passes the pushed tag through --build-arg VERSION=$TAG and bakes it into the binary. Falls back to carlmjohnson/versioninfo's VCS info when ldflag is unset so `natsie --version` always reports something.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "dev"
Version is overridden at link time. Do not change at runtime.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.