Skip to content

Go library for converting between ISO3166-2 alpha-2 country codes and their readable names

Notifications You must be signed in to change notification settings

domodwyer/countrycodes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Build Status GoDoc

Country Codes

Quick library file for translating ISO 3166-1 ALPHA-2 country codes to their readable names and back again.

Usage

Fetch with go get github.com/domodwyer/countrycodes

name, err := countrycodes.ToName("GB")
if err != nil {
	panic("Country code not found :( ")
}

fmt.Printf("GB is the country code for %s", name)

About

Go library for converting between ISO3166-2 alpha-2 country codes and their readable names

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages