diff options
author | Wolfy-J <[email protected]> | 2018-09-23 14:52:55 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-09-23 14:52:55 +0300 |
commit | 19d88fc879ba403347726138eb532fb85d38168e (patch) | |
tree | c93c9ddd7a6fe7be3b884458b3ad8e9f4c9b19ec /service/env | |
parent | bd046974b969af381b3a50513d9f3ab453ed8bbf (diff) |
default configs
Diffstat (limited to 'service/env')
-rw-r--r-- | service/env/config.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/service/env/config.go b/service/env/config.go index d0ba686b..a7da695e 100644 --- a/service/env/config.go +++ b/service/env/config.go @@ -14,3 +14,9 @@ type Config struct { func (c *Config) Hydrate(cfg service.Config) error { return cfg.Unmarshal(&c.Values) } + +// InitDefaults allows to init blank config with pre-defined set of default values. +func (c *Config) InitDefaults() error { + c.Values = make(map[string]string) + return nil +} |