Documentation ¶
Overview ¶
Package version wraps golang BuildInfo for easy versioning of go binaries (installed or built through go install).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromBuildInfo ¶
func FromBuildInfo() (short, long, full string)
FromBuildInfo can be called by other programs to get their version strings (short,long and full) automatically added by go 1.18+ when doing `go install project@vX.Y.Z` and is also used for fortio itself.
func FromBuildInfoPath ¶
FromBuildInfoPath returns the version of as specific module if that module isn't already the main one. Used by Fortio library version init to remember it's own version. Can be used by any other library to extract their own running version. It will also indicate the containing binary's version if the module is not the main one.
Types ¶
This section is empty.