mirror of
https://github.com/hanzoai/ca.git
synced 2026-11-03 18:08:27 +00:00
25 lines
363 B
Plaintext
25 lines
363 B
Plaintext
package version
|
|
|
|
// GENERATED FILE DO NOT CHECK IN TO GIT!
|
|
|
|
import (
|
|
"runtime"
|
|
)
|
|
|
|
var currentVersion = Info{
|
|
Major: 0,
|
|
Minor: 0,
|
|
Commit: 0,
|
|
Runtime: runtime.Version(),
|
|
Build: "GIT_VERSION",
|
|
}
|
|
|
|
func init() {
|
|
currentVersion.PopulateFromBuild()
|
|
}
|
|
|
|
// Current returns the current version [set by the build]
|
|
func Current() Info {
|
|
return currentVersion
|
|
}
|