mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-27 15:54:03 +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
|
|
} |