(s []string, v string)
| 37 | } |
| 38 | |
| 39 | func sliceWithout(s []string, v string) []string { |
| 40 | idx := -1 |
| 41 | for i, item := range s { |
| 42 | if item == v { |
| 43 | idx = i |
| 44 | break |
| 45 | } |
| 46 | } |
| 47 | if idx < 0 { |
| 48 | return s |
| 49 | } |
| 50 | return append(s[:idx], s[idx+1:]...) |
| 51 | } |
| 52 | |
| 53 | func (s *stringSet) RemoveValues(values []string) { |
| 54 | for _, v := range values { |