diff --git a/main.go b/main.go index 8d5f3e4..d5d9eab 100644 --- a/main.go +++ b/main.go @@ -45,6 +45,7 @@ func (c *Config) Define(key string, dtype DataType) { entry, ok := c.env[upper] if ok { entry.dtype = dtype + c.env[upper] = entry } else { var entry cEntry entry.dtype = dtype @@ -62,6 +63,7 @@ func (c *Config) DefineDefault(key string, val string, dtype DataType) { entry.empty = false entry.value = val entry.dtype = dtype + c.env[upper] = entry } } else { var entry cEntry