-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathvariables.go
More file actions
16 lines (14 loc) · 582 Bytes
/
variables.go
File metadata and controls
16 lines (14 loc) · 582 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Package versioninfo uses runtime.ReadBuildInfo() to set global executable revision information if possible.
package versioninfo
import "time"
var (
// Version will be the version tag if the binary is built with "go install url/tool@version".
// If the binary is built some other way, it will be "(devel)".
Version = "unknown"
// Revision is taken from the vcs.revision tag in Go 1.18+.
Revision = "unknown"
// LastCommit is taken from the vcs.time tag in Go 1.18+.
LastCommit time.Time
// DirtyBuild is taken from the vcs.modified tag in Go 1.18+.
DirtyBuild = true
)