Exemplo n.º 1
0
func getPhoneNumber() string {
	n := getTextFromDialog("getPhoneNumber", "signInPage", "numberEntered")

	num, _ := libphonenumber.Parse(n, "")
	c := libphonenumber.GetRegionCodeForCountryCode(int(num.GetCountryCode()))
	s := libphonenumber.GetNationalSignificantNumber(num)
	f := formatE164(s, c)
	return f
}
Exemplo n.º 2
0
func defaultCountry() string {
	num, _ := libphonenumber.Parse(config.Tel, "")
	return libphonenumber.GetRegionCodeForCountryCode(int(num.GetCountryCode()))
}