Documentation
¶
Overview ¶
Package version exposes application-wide metadata.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Before ¶ added in v0.20.0
Before reports whether version a comes before version b in semantic version order, an invalid one first.
func Commit ¶ added in v0.20.0
func Commit() string
Commit returns the commit the binary was built from, or an empty string when the build named none.
func Compare ¶ added in v0.20.0
Compare returns -1, 0 or 1 as version a comes before, with or after version b, every invalid one first and equal.
func Generator ¶
Generator returns how the application names itself and its feature version to a reader.
func MajorMinor ¶
MajorMinor returns the major and minor parts of a version.
func Minimum ¶ added in v0.20.0
func Minimum() string
Minimum returns the minimum version, the oldest version allowed to run on a database this version migrated.
func Stamp ¶ added in v0.20.0
func Stamp() string
Stamp returns official for a binary the release workflow built, and an empty string for a custom build.
Types ¶
This section is empty.