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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.