We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49b267d commit e4039aeCopy full SHA for e4039ae
info.go
@@ -19,6 +19,7 @@ import (
19
"runtime"
20
"strings"
21
"text/template"
22
+ "time"
23
)
24
25
// Build information. Populated at build-time.
@@ -29,6 +30,7 @@ var (
29
30
BuildUser string
31
BuildDate string
32
GoVersion = runtime.Version()
33
+ Started = time.Now()
34
35
36
// versionInfoTmpl contains the template used by Info.
@@ -38,11 +40,13 @@ const versionInfoTmpl = `
38
40
build date: {{.buildDate}}
39
41
go version: {{.goVersion}}
42
platform: {{.platform}}
43
+ started: {{.started}}
44
`
45
46
// Print returns version information.
47
func Print(program string) string {
48
m := map[string]string{
49
+ "started": Started.String(),
50
"program": program,
51
"version": Version,
52
"revision": Revision,
0 commit comments