Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Output of "git describe". The prerequisite is that the branch should be // tagged using the correct versioning strategy. GitVersion string = "devel" )
Base version information.
This is the fallback data used when version information from git is not provided via go ldflags (e.g. via Makefile).
Functions ¶
Types ¶
type Info ¶ added in v0.2.0
type Info struct { GitVersion string GitCommit string GitTreeState string BuildDate string GoVersion string Compiler string Platform string }
func VersionInfo ¶ added in v0.2.0
func VersionInfo() Info
func (*Info) JSONString ¶ added in v0.2.0
JSONString returns the JSON representation of the version info
Click to show internal directories.
Click to hide internal directories.