(values []string)
| 197 | } |
| 198 | |
| 199 | func (a autoCompleteHandler) removeDuplicates(values []string) []string { |
| 200 | keys := make(map[string]bool) |
| 201 | result := []string{} |
| 202 | |
| 203 | for _, entry := range values { |
| 204 | if _, value := keys[entry]; !value { |
| 205 | keys[entry] = true |
| 206 | result = append(result, entry) |
| 207 | } |
| 208 | } |
| 209 | return result |
| 210 | } |
| 211 | |
| 212 | func (a autoCompleteHandler) removeExcluded(values []string, exclude []string) []string { |
| 213 | result := []string{} |
no outgoing calls
no test coverage detected