Documentation
¶
Overview ¶
Package version exposes build metadata injected at link time.
Release builds set these with:
-ldflags "-X github.com/marvinli001/edgeweir-node/internal/version.Version=... \
-X github.com/marvinli001/edgeweir-node/internal/version.Commit=... \
-X github.com/marvinli001/edgeweir-node/internal/version.Date=..."
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version is the semantic version of the agent, "dev" for local builds. Version = "dev" // Commit is the full git commit hash the binary was built from. Commit = "none" // Date is the commit date (RFC 3339) of the build, kept stable for // reproducible builds. Date = "unknown" )
These variables are overwritten by the linker in release builds.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.