Insert adds a new key to the set if it doesn't already exist.
(key interface{})
| 17 | |
| 18 | // Insert adds a new key to the set if it doesn't already exist. |
| 19 | func (s *syncSet) Insert(key interface{}) { |
| 20 | s.underlying.Store(key, emptyVal) |
| 21 | } |
| 22 | |
| 23 | // Remove deletes a key from the set. |
| 24 | func (s *syncSet) Remove(key interface{}) { |