lbry.go/util/slice.go
Alex Grintsvayg 2d3c89af28
add InSlice
2018-02-28 10:49:01 -05:00

10 lines
145 B
Go

package util
func InSlice(str string, values []string) bool {
for _, v := range values {
if str == v {
return true
}
}
return false
}