Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // GitCommit is updated with the Git tag by the Goreleaser build GitCommit = "unknown" // BuildDate is updated with the current ISO timestamp by the Goreleaser build BuildDate = "unknown" // Version is updated with the latest tag by the Goreleaser build Version = "unreleased" )
Functions ¶
Types ¶
type Info ¶ added in v1.4.0
type Info struct { Version string GitCommit string BuildDate string GoVersion string Compiler string Platform string License string }
func GetVersionInfo ¶ added in v1.4.0
func GetVersionInfo() Info
func (*Info) JSONString ¶ added in v1.4.0
JSONString returns the JSON representation of the version info
Click to show internal directories.
Click to hide internal directories.