1 2 3 4 5 6 7 8 9 10
package btrfs func inSlice[T comparable](needle T, haystack []T) bool { for _, straw := range haystack { if needle == straw { return true } } return false }