Documentation
¶
Overview ¶
Package version provides build-time version information. Values are injected via -ldflags at build time:
go build -ldflags "-X github.com/ANIAN0/filebrowser-cli/pkg/version.Version=v1.0.0 \
-X github.com/ANIAN0/filebrowser-cli/pkg/version.Commit=$(git rev-parse HEAD) \
-X github.com/ANIAN0/filebrowser-cli/pkg/version.BuildTime=$(date -u +%Y-%m-%dT%H:%M:%SZ)"
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version is the semantic version string (e.g., "v1.0.0"). // Default is "dev" for development builds. Version = "dev" // Commit is the git commit hash. // Default is "unknown" for development builds. Commit = "unknown" // BuildTime is the UTC build timestamp in RFC 3339 format. // Default is empty for development builds. BuildTime = "" )
These variables are set at build time via -ldflags.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.