Files
coredns/middleware/pkg/strings/slice.go
Manuel de Brito Fontes 2b62384223 Refactoring of k8s helpers
2016-09-23 09:48:11 -03:00

12 lines
210 B
Go

package strings
// StringInSlice check whether string a is a member of slice.
func StringInSlice(a string, slice []string) bool {
for _, b := range slice {
if b == a {
return true
}
}
return false
}