Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct { // The application version. Version string // The commit ID of the build. Revision string // The build time in UTC (year-month-day hour:min:sec). BuildTime string // The runtime platform (architecture and operating system). Platform string // The application distribution. Distribution string // The runtime Go version. GoVersion string }
Info contains build information
func (Info) LongVersion ¶
LongVersion returns a pretty printed build summary.
func (Info) ShortVersion ¶
ShortVersion return a pretty printed version summary.
Click to show internal directories.
Click to hide internal directories.