Documentation ¶
Index ¶
Constants ¶
View Source
const TimeFormat = "2006/01/02 15:04:05"
TimeFormat is the reference format for build.Time. Make sure it stays in sync with the string passed to the linker in the goreleaser config file
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct { GoVersion string Tag string Time string Revision string CgoCompiler string Platform string }
Info stores the build information
func GetInfo ¶
func GetInfo() Info
GetInfo returns an Info struct populated with the build information.
Click to show internal directories.
Click to hide internal directories.