mirror of
https://github.com/OpenListTeam/OpenList.git
synced 2025-11-25 19:37:41 +08:00
10 lines
161 B
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
|
||
|
|
}
|