Insert adds items to the set.
(items ...string)
| 51 | |
| 52 | // Insert adds items to the set. |
| 53 | func (s StringSet) Insert(items ...string) StringSet { |
| 54 | for _, item := range items { |
| 55 | s[item] = empty{} |
| 56 | } |
| 57 | return s |
| 58 | } |
| 59 | |
| 60 | // Delete removes all items from the set. |
| 61 | func (s StringSet) Delete(items ...string) StringSet { |
no outgoing calls