add test print

This commit is contained in:
Roy Olav Purser 2022-01-29 21:59:03 +01:00
parent 2cdcbec364
commit 45f8b0f918
Signed by: roypur
GPG Key ID: E14D26A036F21656
2 changed files with 2 additions and 3 deletions

View File

@ -89,6 +89,7 @@ func (c *Config) DefineMap(key string, dtype DataType) {
entries, ok := c.mapEnv[key] entries, ok := c.mapEnv[key]
if ok { if ok {
for _, key = range entries { for _, key = range entries {
fmt.Printf("key-from-define-map (%s)\n", key)
entry := c.env[key] entry := c.env[key]
entry.dtype = dtype entry.dtype = dtype
c.env[key] = entry c.env[key] = entry

View File

@ -12,8 +12,6 @@ func main() {
conf.Parse() conf.Parse()
conf.Status() conf.Status()
fmt.Println(conf)
fmt.Println(conf.GetMapInt("test_map")) fmt.Println(conf.GetMapInt("test_map"))
fmt.Println(conf.GetHex("this_is_a_map")) fmt.Println(conf.GetInt("this_is_a_map"))
} }