(tools []string, toRemove string)
| 446 | } |
| 447 | |
| 448 | func RemoveToolset(tools []string, toRemove string) []string { |
| 449 | result := make([]string, 0, len(tools)) |
| 450 | for _, tool := range tools { |
| 451 | if tool != toRemove { |
| 452 | result = append(result, tool) |
| 453 | } |
| 454 | } |
| 455 | return result |
| 456 | } |
| 457 | |
| 458 | func ContainsToolset(tools []string, toCheck string) bool { |
| 459 | return slices.Contains(tools, toCheck) |
no outgoing calls