k3s/vendor/github.com/rancher/wrangler/pkg/slice/contains.go
Darren Shepherd 16f7aaab66 Update vendor
2019-05-25 23:44:33 -07:00

23 lines
348 B
Go

package slice
func ContainsString(slice []string, item string) bool {
for _, j := range slice {
if j == item {
return true
}
}
return false
}
func StringsEqual(left, right []string) bool {
if len(left) != len(right) {
return false
}
for i := 0; i < len(left); i++ {
if left[i] != right[i] {
return false
}
}
return true
}