mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
12 lines
162 B
Go
12 lines
162 B
Go
|
package util
|
||
|
|
||
|
func StringSliceContains(slice []string, needle string) bool {
|
||
|
for _, s := range slice {
|
||
|
if s == needle {
|
||
|
return true
|
||
|
}
|
||
|
}
|
||
|
|
||
|
return false
|
||
|
}
|