Documentation
¶
Overview ¶
Package buildinfo reports the version, commit and build date of the binary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct {
Version string `json:"version"`
Commit string `json:"commit"`
Date string `json:"date"`
GoVersion string `json:"go_version"`
Platform string `json:"platform"`
}
Info describes the running binary.
func Get ¶
func Get() Info
Get returns the build metadata, falling back to debug.ReadBuildInfo for go install builds.