(values []string, exclude []string)
| 210 | } |
| 211 | |
| 212 | func (a autoCompleteHandler) removeExcluded(values []string, exclude []string) []string { |
| 213 | result := []string{} |
| 214 | for _, entry := range values { |
| 215 | if !a.contains(exclude, entry) { |
| 216 | result = append(result, entry) |
| 217 | } |
| 218 | } |
| 219 | return result |
| 220 | } |
| 221 | |
| 222 | func (a autoCompleteHandler) contains(values []string, value string) bool { |
| 223 | for _, v := range values { |
no test coverage detected