alist/utils/slice.go

10 lines
161 B
Go

package utils
func IsContain(items []string, item string) bool {
for _, eachItem := range items {
if eachItem == item {
return true
}
}
return false
}