luet/pkg/helpers/slice.go
2021-07-29 11:03:02 +02:00

11 lines
135 B
Go

package helpers
func Contains(s []string, e string) bool {
for _, a := range s {
if a == e {
return true
}
}
return false
}