(slice1 []string, slice2 []string)
| 137 | } |
| 138 | |
| 139 | func SubtractStrSlice(slice1 []string, slice2 []string) []string { |
| 140 | result := []string{} |
| 141 | for _, elem := range slice1 { |
| 142 | if !HasString(slice2, elem) { |
| 143 | result = append(result, elem) |
| 144 | } |
| 145 | } |
| 146 | return result |
| 147 | } |
| 148 | |
| 149 | func StrSliceElementsMatch(strs1 []string, strs2 []string) bool { |
| 150 | if len(strs1) == 0 && len(strs2) == 0 { |
no test coverage detected