lbry.go/util/slice.go
Niko Storni 2f615df34d
add concurrency support
fix error handling (FINALLY)
fix slack message formatting
add locking for wallet setup to support concurrency
remove UTXO bug workaround (lbryumx should fix it)
add limits to filesize
2018-07-12 08:26:45 -04:00

21 lines
341 B
Go

package util
import "strings"
func InSlice(str string, values []string) bool {
for _, v := range values {
if str == v {
return true
}
}
return false
}
func InSliceContains(fullString string, candidates []string) bool {
for _, v := range candidates {
if strings.Contains(fullString, v) {
return true
}
}
return false
}