luet/pkg/helpers/slice.go

11 lines
135 B
Go
Raw Normal View History

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