659a20a5ba
remove margin for fees handle non latin names adjusted error handling
21 lines
325 B
Go
21 lines
325 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(subStr string, values []string) bool {
|
|
for _, v := range values {
|
|
if strings.Contains(v, subStr) {
|
|
return true
|
|
}
|
|
}
|
|
return false
|
|
}
|