version

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL