bbgo_origin/pkg/util/string.go

12 lines
162 B
Go
Raw Normal View History

2021-02-19 02:42:24 +00:00
package util
func StringSliceContains(slice []string, needle string) bool {
for _, s := range slice {
if s == needle {
return true
}
}
return false
}