初始化提交

This commit is contained in:
2023-06-08 09:32:22 +08:00
parent b748b7e847
commit 531962b50f
54 changed files with 2222 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
package utils
import "regexp"
// RegexpMobile 手机号匹配
func RegexpMobile(mobile string) bool {
ok, err := regexp.MatchString(`^1[3-9][0-9]{9}$`, mobile)
if err != nil {
return false
}
return ok
}