Dev
This commit is contained in:
10
internal/validators/helper.go
Normal file
10
internal/validators/helper.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package validators
|
||||
|
||||
func StringInSlice(str string, target []string) bool {
|
||||
for _, v := range target {
|
||||
if v == str {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
Reference in New Issue
Block a user