You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
decort-golang-sdk/internal/validators/helper.go

11 lines
157 B

package validators
func StringInSlice(str string, target []string) bool {
for _, v := range target {
if v == str {
return true
}
}
return false
}