(section, key, value string)
| 21 | } |
| 22 | |
| 23 | func (cm configMap) Add(section, key, value string) { |
| 24 | if _, ok := cm[section]; !ok { |
| 25 | cm[section] = make(sectionMap) |
| 26 | } |
| 27 | if _, ok := cm[section][key]; !ok { |
| 28 | cm[section][key] = value |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | func createConfigMap(lines []string) configMap { |
| 33 | cm := newConfigMap() |
no outgoing calls