mirror of
https://github.com/wahyd4/cert-manager.git
synced 2026-08-10 13:45:52 +10:00
21 lines
275 B
Go
21 lines
275 B
Go
package util
|
|
|
|
import "fmt"
|
|
|
|
var (
|
|
AppGitState = ""
|
|
AppGitCommit = ""
|
|
AppVersion = "canary"
|
|
)
|
|
|
|
func version() string {
|
|
v := AppVersion
|
|
if AppGitCommit != "" {
|
|
v += "-" + AppGitCommit
|
|
}
|
|
if AppGitState != "" {
|
|
v += fmt.Sprintf(" (%v)", AppGitState)
|
|
}
|
|
return v
|
|
}
|