authelia/internal/utils/strings.go

11 lines
146 B
Go
Raw Normal View History

package utils
func IsStringInSlice(a string, list []string) bool {
for _, b := range list {
if b == a {
return true
}
}
return false
}