mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 16:06:56 +00:00
12 lines
217 B
Go
12 lines
217 B
Go
|
package policy
|
||
|
|
||
|
//Contains Check if strint is contained in a list of string
|
||
|
func containString(list []string, element string) bool {
|
||
|
for _, e := range list {
|
||
|
if e == element {
|
||
|
return true
|
||
|
}
|
||
|
}
|
||
|
return false
|
||
|
}
|