add test print
This commit is contained in:
parent
2cdcbec364
commit
45f8b0f918
@ -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
|
||||||
|
@ -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"))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user