Revert "chore: Implement joins with golang templates (#6429)" (#6560)

This reverts commit 8b125d6c5d.
This commit is contained in:
Kyle Carberry
2023-03-10 10:39:02 -06:00
committed by GitHub
parent a8433b18e4
commit 7eb2c2ff6d
36 changed files with 660 additions and 894 deletions

View File

@ -13,14 +13,9 @@ func takeFirstIP(values ...net.IPNet) net.IPNet {
// takeFirstSlice implements takeFirst for []any.
// []any is not a comparable type.
func takeFirstSlice[T any](values ...[]T) []T {
out := takeFirstF(values, func(v []T) bool {
return takeFirstF(values, func(v []T) bool {
return len(v) != 0
})
// Prevent nil slices
if out == nil {
return []T{}
}
return out
}
// takeFirstF takes the first value that returns true