From 45f8b0f918ee9bca1bbff9cfd2b374ebceb605a9 Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Sat, 29 Jan 2022 21:59:03 +0100 Subject: [PATCH] add test print --- envconf.go | 1 + tests/main.go | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) 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")) }