init code
This commit is contained in:
9
internal/utils/stringx/validation.go
Normal file
9
internal/utils/stringx/validation.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package stringx
|
||||
|
||||
import "regexp"
|
||||
|
||||
func IsAlphaNumeric(s string) bool {
|
||||
match, _ := regexp.MatchString("^[a-zA-Z0-9]*$", s)
|
||||
return match
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user