Documentation
¶
Overview ¶
Package version provides build-time and runtime version information.
The default values can be overridden at link time with -ldflags:
-ldflags "-X github.com/LingByte/ling-base/version.Version=1.0.0"
When not overridden, GitCommit and BuildTime are resolved automatically from VCS build info (Go 1.18+) or the local git repository.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BuildTime = "unknown"
BuildTime is the build timestamp (RFC3339).
View Source
var GitCommit = "unknown"
GitCommit is the short Git commit hash.
View Source
var GoVersion = "unknown"
GoVersion is the Go toolchain version used to build.
View Source
var Version = "1.0.0"
Version is the semantic version string.
Functions ¶
func GetVersionInfo ¶
func GetVersionInfo() string
GetVersionInfo returns a human-readable version summary.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.