We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"UK" does not seem to be accepted as a country, but "GB" is.
When I run:
var num libphonenumber.PhoneNumber err := libphonenumber.ParseToNumber("0123456789", "GB", &num) if err != nil { fmt.Println("error with GB:", err) return } err = libphonenumber.ParseToNumber("0123456789", "UK", &num) if err != nil { fmt.Println("error with UK:", err) return }
I get: error with UK: invalid country code
error with UK: invalid country code
However, according to some resources I've checked, +44 is always referred to the calling code of the United Kingdom.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
"UK" does not seem to be accepted as a country, but "GB" is.
When I run:
I get:
error with UK: invalid country code
However, according to some resources I've checked, +44 is always referred to the calling code of the United Kingdom.
The text was updated successfully, but these errors were encountered: