Exemple #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
}
Exemple #2
0
func defaultCountry() string {
	num, _ := libphonenumber.Parse(config.Tel, "")
	return libphonenumber.GetRegionCodeForCountryCode(int(num.GetCountryCode()))
}