package helper import ( "fmt" "testing" ) func TestToChinese(t *testing.T) { arg := "sub_msg" got := ToChinese(arg) t.Log(got) } func TestAccountType(t *testing.T) { arg := "3122222222" got := IsValidQQ(arg) accountType() t.Log(got) } func accountType() { a := "6837370979" if IsPhoneNumber(a) { fmt.Println("AccountTypePhone") } else if IsValidQQ(a) { fmt.Println("AccountTypeQQ") } else { fmt.Println("AccountTypeDefault") } }