Add - adds key and value. The value is appended If key already exists.
(key string, value set.StringSet)
| 26 | |
| 27 | // Add - adds key and value. The value is appended If key already exists. |
| 28 | func (ckm ConditionKeyMap) Add(key string, value set.StringSet) { |
| 29 | if v, ok := ckm[key]; ok { |
| 30 | ckm[key] = v.Union(value) |
| 31 | } else { |
| 32 | ckm[key] = set.CopyStringSet(value) |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | // Remove - removes value of given key. If key has empty after removal, the key is also removed. |
| 37 | func (ckm ConditionKeyMap) Remove(key string, value set.StringSet) { |
nothing calls this directly
no test coverage detected