Documentation
¶
Overview ¶
Package version exposes the build version. Kept small so any package can import it without dependency churn.
Index ¶
Constants ¶
const Current = "0.4.0"
Current is the human-readable release label. Bump on every meaningful shipped change. Set to a `-dev` suffix between releases.
Variables ¶
This section is empty.
Functions ¶
func Commit ¶
func Commit() string
Commit returns the 7-char short SHA the binary was built from, or "" if VCS info isn't available (e.g. `go run`, tarball build).
func CommitTime ¶
func CommitTime() string
CommitTime returns the RFC3339 timestamp of the build commit, or "".
func Dirty ¶
func Dirty() bool
Dirty reports whether the working tree had uncommitted changes when the binary was built.
func Full ¶
func Full() string
Full renders a human-readable version string. Falls back to plain Current when no build info is available, so `go run` and tarball builds don't print misleading parens.
"0.1.0" — no VCS info available "0.1.0 (e546e47)" — clean build from a checkout "0.1.0 (e546e47, dirty)" — built with uncommitted changes
Types ¶
This section is empty.