53 это Санкт Петербург
All checks were successful
Deploy Production / Deploy to Staging (push) Has been skipped
All checks were successful
Deploy Production / Deploy to Staging (push) Has been skipped
This commit is contained in:
14
cmd/main.go
14
cmd/main.go
@@ -25,6 +25,20 @@ var (
|
||||
date string
|
||||
)
|
||||
|
||||
func init() {
|
||||
if version = os.Getenv("APP_VERSION"); version == "" {
|
||||
version = "undefined"
|
||||
}
|
||||
|
||||
if commit = os.Getenv("APP_COMMIT"); commit == "" {
|
||||
commit = "undefined"
|
||||
}
|
||||
|
||||
if date = os.Getenv("APP_BUILD_DATE"); date == "" {
|
||||
date = "undefined"
|
||||
}
|
||||
}
|
||||
|
||||
func main() {
|
||||
cfg := config.MustLoad(version, commit, date)
|
||||
|
||||
|
Reference in New Issue
Block a user