Add the value to the map if and only if one of: it doesn't exist or (it exists, a ValueCheckFunc is defined, the check func returns false). Returns a bool where true indicates this value was added to the map, false means it was already in the map (and the ValueCheckFunc if defined returned true).
(string, interface{})
| 49 | // where true indicates this value was added to the map, false means it was |
| 50 | // already in the map (and the ValueCheckFunc if defined returned true). |
| 51 | Add(string, interface{}) bool |
| 52 | |
| 53 | // AddOrGet for atomically and serially adding a value to the map if it |
| 54 | // does not exist. If the key is already in the map, the existing value is |
no outgoing calls