Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = func() VersionInfo { var info VersionInfo if build, ok := debug.ReadBuildInfo(); ok { for _, setting := range build.Settings { switch setting.Key { case "vcs.revision": info.Commit = setting.Value[:7] case "vcs.time": d, _ := time.Parse(time.RFC3339, setting.Value) info.CommitTime = d.Format("20060102150405") } } } return info }()
Functions ¶
This section is empty.
Types ¶
type VersionInfo ¶
func (VersionInfo) String ¶
func (v VersionInfo) String() string
Click to show internal directories.
Click to hide internal directories.