https://github.com/urethramancer/countries
Go package with country codes to country name translation, phone prefixes and postal address formatting.
https://github.com/urethramancer/countries
country-codes go golang internationalization letter-country phone-prefixes
Last synced: 11 months ago
JSON representation
Go package with country codes to country name translation, phone prefixes and postal address formatting.
- Host: GitHub
- URL: https://github.com/urethramancer/countries
- Owner: Urethramancer
- License: mit
- Created: 2017-04-17T19:36:31.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-17T20:49:20.000Z (about 9 years ago)
- Last Synced: 2025-04-01T06:39:23.713Z (about 1 year ago)
- Topics: country-codes, go, golang, internationalization, letter-country, phone-prefixes
- Language: Go
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Countries
A simple lookup package for country codes to country names or phone prefixes, and formatting postal addresses.
## Functions
Get a country name from a two-letter country code:
```go
country := Country("VU")
```
Get a phone prefix from a two-letter country code:
```go
pre := PhonePrefix("MN")
```
## Licence
MIT.