常用类型及数据操作方法
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
175 B

3 years ago
  1. package helper
  2. import (
  3. "testing"
  4. )
  5. func Test_IsMobile(t *testing.T) {
  6. s := "1344456907s"
  7. ret := IsMobile(s)
  8. t.Log(ret)
  9. s = "+1@ee.22"
  10. ret = IsEmail(s)
  11. t.Log(ret)
  12. }