Documentation
¶
Overview ¶
Package version exposes build version and commit metadata injected at compile time.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeriveVersion ¶
DeriveVersion normalizes a version string from build info. Handles various version formats including semantic versions, pseudo-versions, and dev builds. Returns "dev" for unrecognized formats or pure pseudo-versions without a base tag.
func GetCommitHash ¶
func GetCommitHash() string
GetCommitHash returns the short commit hash (7 characters) from build info. Returns "unknown" if commit information is not available.
func GetVersion ¶
func GetVersion() string
GetVersion returns the application version derived from build info. Returns "dev" if version information is not available.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.