feat: debug multistage build
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user