(existing, incoming []string)
| 182 | } |
| 183 | |
| 184 | func mergeTechs(existing, incoming []string) []string { |
| 185 | set := make(map[string]bool) |
| 186 | for _, t := range existing { |
| 187 | set[strings.ToLower(t)] = true |
| 188 | } |
| 189 | result := append([]string{}, existing...) |
| 190 | for _, t := range incoming { |
| 191 | if !set[strings.ToLower(t)] { |
| 192 | result = append(result, t) |
| 193 | set[strings.ToLower(t)] = true |
| 194 | } |
| 195 | } |
| 196 | return result |
| 197 | } |
| 198 | |
| 199 | func stringSliceEqual(a, b []string) bool { |
| 200 | if len(a) != len(b) { |