1
0
Fork 0
mirror of https://github.com/kyverno/policy-reporter.git synced 2024-12-14 11:57:32 +00:00
policy-reporter/pkg/helper/utils.go
Frank Jogeleit 3e443f126a
Email Reports (#164)
* add E-Mail reports

Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2022-07-03 23:49:16 +02:00

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
}