mirror of
https://github.com/coredns/coredns.git
synced 2025-10-30 01:34:21 -04:00
13 lines
290 B
Go
13 lines
290 B
Go
|
|
// Package kubernetes/util provides helper functions for the kubernetes middleware
|
||
|
|
package util
|
||
|
|
|
||
|
|
// 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
|
||
|
|
}
|