Determines if a given item is already in the set.
(i string)
| 40 | |
| 41 | // Determines if a given item is already in the set. |
| 42 | func (set StringSet) Contains(i string) bool { |
| 43 | _, found := set[i] |
| 44 | return found |
| 45 | } |
| 46 | |
| 47 | // Determines if the given items are all in the set |
| 48 | func (set StringSet) ContainsAll(i ...string) bool { |
no outgoing calls
no test coverage detected