Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Version ¶
type Version struct {
// Version is a human-friendly version string.
Version string
// BuildDate is the date/time on which the application was built.
BuildDate time.Time
// GitCommit is the ID (sha) of the last commit to the application's source
// code that is included in this build.
GitCommit string
// GitTreeDirty is true if the application's source code contained
// uncommitted changes at the time it was built; otherwise it is false.
GitTreeDirty bool
// GoVersion is the version of Go that was used to build the application.
GoVersion string
// Compiler indicates what Go compiler was used for the build.
Compiler string
// Platform indicates the OS and CPU architecture for which the application
// was built.
Platform string
}
Version encapsulates all available information about the source code and the build.
func GetVersion ¶
func GetVersion() Version
Click to show internal directories.
Click to hide internal directories.