mirror of
https://github.com/astaxie/beego.git
synced 2024-06-25 23:04:13 +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
|
|
}
|