zitadel/cmd/build/info.go
Livio Spring c791f6de58
fix: improve startup times by initializing projection tables during setup (#4642)
* fix: improve startup times by initializing projections table during setup

* add missing file
2022-11-04 09:21:58 +00:00

30 lines
403 B
Go

package build
import "time"
var (
version = time.Now().Format(time.RFC3339)
commit = ""
date = ""
dateTime time.Time
)
func Version() string {
return version
}
func Commit() string {
return commit
}
func Date() time.Time {
if !dateTime.IsZero() {
return dateTime
}
dateTime, _ = time.Parse(time.RFC3339, date)
if dateTime.IsZero() {
dateTime = time.Now()
}
return dateTime
}