Documentation
¶
Overview ¶
Package version provides the single source of truth for the Aegis framework version.
At build time, GoReleaser injects the git tag via:
-X github.com/theinventorylib/aegis/internal/version.Version=v1.2.3
At runtime (when built without GoReleaser, e.g. library consumers), the version is resolved from the embedded module build info via runtime/debug.ReadBuildInfo(). This covers cases like:
go get github.com/theinventorylib/aegis@v1.2.3 // version embedded in consumer binary go run ./... // returns "dev"
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "dev"
Version is the Aegis framework version. GoReleaser overrides this var at link time for release builds. Falls back to runtime build info, then "dev" for local/test builds.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.