(section, key string)
| 12 | } |
| 13 | |
| 14 | func (cm configMap) Get(section, key string) (string, bool) { |
| 15 | if sec, ok := cm[section]; ok { |
| 16 | if val, ok := sec[key]; ok { |
| 17 | return val, true |
| 18 | } |
| 19 | } |
| 20 | return "", false |
| 21 | } |
| 22 | |
| 23 | func (cm configMap) Add(section, key, value string) { |
| 24 | if _, ok := cm[section]; !ok { |
no outgoing calls