Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "dev"
Version is set from main via ldflags at build time.
Functions ¶
func ListBackups ¶
ListBackups returns all backup manifests from the backup directory.
func ResolveVersion ¶
ResolveVersion determines the effective version string. Priority: ldflags override > debug.BuildInfo.Main.Version > "dev".
When the binary is built via GoReleaser, ldflagsVersion is a real semver (e.g. "1.8.3") and BuildInfo is never consulted. When built via `go install`, ldflagsVersion defaults to "dev" and BuildInfo.Main.Version contains the tagged version (e.g. "v1.8.3") or "(devel)" for untagged builds.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.