mirror of
https://github.com/kyverno/policy-reporter.git
synced 2024-12-14 11:57:32 +00:00
3e443f126a
* add E-Mail reports Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
13 lines
192 B
Go
13 lines
192 B
Go
package helper
|
|
|
|
import "strings"
|
|
|
|
func Contains(source string, sources []string) bool {
|
|
for _, s := range sources {
|
|
if strings.EqualFold(s, source) {
|
|
return true
|
|
}
|
|
}
|
|
|
|
return false
|
|
}
|