Has returns true if and only if item is contained in the set.
(item string)
| 61 | |
| 62 | // Has returns true if and only if item is contained in the set. |
| 63 | func (s String) Has(item string) bool { |
| 64 | _, contained := s[item] |
| 65 | return contained |
| 66 | } |
| 67 | |
| 68 | // HasAll returns true if and only if all items are contained in the set. |
| 69 | func (s String) HasAll(items ...string) bool { |
no outgoing calls
no test coverage detected