package utils import ( "regexp" ) func CheckMobile(mobile string) bool { regular := "^(1)\\d{10}$" r := regexp.MustCompile(regular) return r.MatchString(mobile) }