mirror of
https://github.com/HChaZZY/alist.git
synced 2025-12-06 11:03:49 +08:00
✨ basic structure
This commit is contained in:
10
utils/slice.go
Normal file
10
utils/slice.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package utils
|
||||
|
||||
func IsContain(items []string, item string) bool {
|
||||
for _, eachItem := range items {
|
||||
if eachItem == item {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
Reference in New Issue
Block a user