validate.go 223 Bytes
package utils

import (
	"regexp"
)

//检查手机号格式
func CheckPhoneNo(phone_no string)(bool) {
	reg := `^1\d{10}$`
	rgx := regexp.MustCompile(reg)
	if (!rgx.MatchString(phone_no)) {
		return false
	}
	return true
}