ContainsString determines if all if sel's sections are in s.
(scope []string)
| 92 | |
| 93 | // ContainsString determines if all if sel's sections are in s. |
| 94 | func (s *Selector) ContainsString(scope []string) bool { |
| 95 | for _, option := range scope { |
| 96 | sel := Selector{Value: []string{option}} |
| 97 | if !s.Contains(sel) { |
| 98 | return false |
| 99 | } |
| 100 | } |
| 101 | return true |
| 102 | } |
| 103 | |
| 104 | // Equal determines if sel == s. |
| 105 | func (s *Selector) Equal(sel Selector) bool { |