feat: debug multistage build

This commit is contained in:
2022-07-20 01:05:08 +03:00
parent b9006e4a1b
commit 3cea551988
3 changed files with 7 additions and 10 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ import (
type Config struct {
API struct {
Token string `env:"TOKEN" env-layout:"string" env-required:"true"`
Owner int `env:"OWNER" env-layout:"int" env-required:"true"`
Owner int `env:"OWNER" env-layout:"int" env-required:"true"`
}
Paths struct {
Docs string `env:"DOCS_PATH" env-layout:"string" env-default:"docs" env-upd:"true"`
@@ -23,7 +23,7 @@ func GetConfig() Config {
once.Do(func() {
err := cleanenv.ReadEnv(&cfg)
if err != nil {
panic(err.Error())
panic(err)
}
})
return cfg