Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GetVersionWithCommit ¶
func GetVersionWithCommit() string
Types ¶
type BuildInfo ¶
type BuildInfo struct { Version string Revision string Branch string BuildUser string BuildDate string GoVersion string }
func NewBuildInfo ¶
NewBuildInfo returns an object with the build information.
func NewDefaultBuildInfo ¶
func NewDefaultBuildInfo() BuildInfo
NewDefaultBuildInfo returns the build information obtained from ldflags.
Click to show internal directories.
Click to hide internal directories.