The iso3166
package implements ISO 3166-1-alpha2 code and name lookup.
Validate Country Codes
if iso3166.Valid("US") {
// do something
}
Lookup Country Code from Name
countryCode := iso3166.LookupCode("United States") // "US"
channel | info |
---|---|
Twitter @moov | You can follow Moov.io's Twitter feed to get updates on our project(s). You can also tweet us questions or just share blogs or stories. |
GitHub Issue | If you are able to reproduce a problem please open a GitHub Issue under the specific project that caused the error. |
moov-io slack | Join our slack channel to have an interactive discussion about the development of the project. |
- 64-bit Linux (Ubuntu, Debian), macOS, and Windows
Apache License 2.0 - See LICENSE for details.