Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
5262d7abb7
|
|||
2efc1a155e
|
@ -55,7 +55,6 @@ func NewConfig() *Config {
|
||||
if len(config.mapEnv[left]) == 0 {
|
||||
config.mapEnv[left] = make(map[string]string)
|
||||
}
|
||||
fmt.Printf("left=(%s), right=(%s), key=(%s)\n", left, right, key)
|
||||
config.mapEnv[left][right] = key
|
||||
}
|
||||
}
|
||||
@ -89,7 +88,6 @@ 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
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
func main() {
|
||||
conf := envconf.NewConfig()
|
||||
conf.Define("this_is_a_map", envconf.TypeInt)
|
||||
conf.Define("test_map", envconf.TypeInt)
|
||||
conf.DefineMap("test_map", envconf.TypeInt)
|
||||
conf.Parse()
|
||||
conf.Status()
|
||||
|
||||
|
Reference in New Issue
Block a user