bbgo_origin/pkg/util/string.go
2021-02-19 10:42:24 +08:00

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
}