Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 1 month ago
JSON representation

Go package with country codes to country name translation, phone prefixes and postal address formatting.

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.