mirror of
https://github.com/astaxie/beego.git
synced 2024-06-28 03:04:14 +00:00
11 lines
136 B
Go
11 lines
136 B
Go
![]() |
package utils
|
||
|
|
||
|
func InSlice(v string, sl []string) bool {
|
||
|
for _, vv := range sl {
|
||
|
if vv == v {
|
||
|
return true
|
||
|
}
|
||
|
}
|
||
|
return false
|
||
|
}
|