2f615df34d
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
21 lines
341 B
Go
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
|
|
}
|