package regx import ( "fmt" "testing" ) func TestRegx_IsPhone(t *testing.T) { fmt.Println(regx.IsPhone("18888888888")) fmt.Println(regx.IsPhone("188888888888888")) fmt.Println(regx.IsPhone("28888888888")) }