iso3166

package
v0.99999.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2022 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlphaCode

type AlphaCode struct {
	Country string
	Alpha2  string
	Alpha3  string
	Numeric string
}

AlphaCode maps country to alpha-2 and alpha-3 ISO 3166-1 codes and their numeric code.

func Find

func Find(s string) (_ AlphaCode, err error)

Find a country alpha code by the country name, 2 or 3 digit alpha code, or numeric code. An error is returned if the country can't be found.

func List

func List() (codes []*AlphaCode)

List all country codes that are stored in the module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL