lbry.go/util/slice.go

11 lines
145 B
Go
Raw Normal View History

2018-02-28 16:49:01 +01:00
package util
func InSlice(str string, values []string) bool {
for _, v := range values {
if str == v {
return true
}
}
return false
}