diff --git a/envconf.go b/envconf.go index 56c5023..2a61401 100644 --- a/envconf.go +++ b/envconf.go @@ -89,6 +89,7 @@ func (c *Config) DefineMap(key string, dtype DataType) { entries, ok := c.mapEnv[key] if ok { for _, key = range entries { + fmt.Printf("key-from-define-map (%s)\n", key) entry := c.env[key] entry.dtype = dtype c.env[key] = entry diff --git a/tests/main.go b/tests/main.go index cc7eb31..1fae9da 100644 --- a/tests/main.go +++ b/tests/main.go @@ -12,8 +12,6 @@ func main() { conf.Parse() conf.Status() - fmt.Println(conf) - fmt.Println(conf.GetMapInt("test_map")) - fmt.Println(conf.GetHex("this_is_a_map")) + fmt.Println(conf.GetInt("this_is_a_map")) }