countries

package module
Version: v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: BSD-2-Clause Imports: 6 Imported by: 17

README

countries

Countries - ISO 3166 (ISO3166-1, ISO3166, Digit, Alpha-2, Alpha-3) countries codes and names (on eng and rus), ISO 4217 currency designators, ITU-T E.164 IDD calling phone codes, countries capitals, UN M.49 regions codes, IANA ccTLD countries domains, IOC/NOC and FIFA codes, VERY FAST, NO maps[], NO slices[], NO init() funcs, NO external links/files/data, NO interface{}, NO specific dependencies, Databases/JSON/GOB/XML/CSV compatible, Emoji countries flags and currencies support, full support ISO-3166-1, ISO-4217, ITU-T E.164, Unicode CLDR and IANA ccTLD standarts.

Full support ISO-3166-1, ISO-4217, ITU-T E.164, Unicode CLDR and IANA ccTLD standarts.

GoDoc GoDev Go Walker Documentation Status DOI codeclimate GolangCI GoReport Codacy Badge codecov Coverage Status Coverage ISO ITU IANA License FOSSA Status Build Status Build status Circle CI Semaphore Status Build Status Codeship Status DMCA.com Protection Status Dependencies Free Gluten Free DepShield Badge Stars

installation

go get github.com/biter777/countries

usage

	countryJapan := countries.Japan
	fmt.Printf("Country name in english: %v\n", countryJapan)                   // Japan
	fmt.Printf("Country name in russian: %v\n", countryJapan.StringRus())       // Япония
	fmt.Printf("Country ISO-3166 digit code: %d\n", countryJapan)               // 392
	fmt.Printf("Country ISO-3166 Alpha-2 code: %v\n", countryJapan.Alpha2())    // JP
	fmt.Printf("Country ISO-3166 Alpha-3 code: %v\n", countryJapan.Alpha3())    // JPN
	fmt.Printf("Country IOC/NOC code: %v\n", countryJapan.IOC())                // JPN
	fmt.Printf("Country FIFA code: %v\n", countryJapan.FIFA())                  // JPN
	fmt.Printf("Country Capital: %v\n", countryJapan.Capital())                 // Tokyo
	fmt.Printf("Country ITU-T E.164 call code: %v\n", countryJapan.CallCodes()) // +81
	fmt.Printf("Country ccTLD domain: %v\n", countryJapan.Domain())             // .jp
	fmt.Printf("Country UN M.49 region name: %v\n", countryJapan.Region())      // Asia
	fmt.Printf("Country UN M.49 region code: %d\n", countryJapan.Region())      // 142
	fmt.Printf("Country emoji/flag: %v\n\n", countryJapan.Emoji())              // 🇯🇵

	currencyJapan := countryJapan.Currency()
	fmt.Printf("Country ISO-4217 Currency name in english: %v\n", currencyJapan)           // Yen
	fmt.Printf("Country ISO-4217 Currency digit code: %d\n", currencyJapan)                // 392
	fmt.Printf("Country ISO-4217 Currency Alpha code: %v\n", currencyJapan.Alpha())        // JPY
	fmt.Printf("Country Currency emoji: %v\n", currencyJapan.Emoji())                      // 💴
	fmt.Printf("Country of Currency %v: %v\n\n", currencyJapan, currencyJapan.Countries()) // Japan

	// OR you can alternative use:
	japanInfo := countries.Japan.Info()
	fmt.Printf("Country name in english: %v\n", japanInfo.Name)                          // Japan
	fmt.Printf("Country ISO-3166 digit code: %d\n", japanInfo.Code)                      // 392
	fmt.Printf("Country ISO-3166 Alpha-2 code: %v\n", japanInfo.Alpha2)                  // JP
	fmt.Printf("Country ISO-3166 Alpha-3 code: %v\n", japanInfo.Alpha3)                  // JPN
	fmt.Printf("Country IOC/NOC code: %v\n", japanInfo.IOC)                              // JPN
	fmt.Printf("Country FIFA code: %v\n", japanInfo.FIFA)                                // JPN
	fmt.Printf("Country Capital: %v\n", japanInfo.Capital)                               // Tokyo
	fmt.Printf("Country ITU-T E.164 call code: %v\n", japanInfo.CallCodes)               // +81
	fmt.Printf("Country ccTLD domain: %v\n", japanInfo.Domain)                           // .jp
	fmt.Printf("Country UN M.49 region name: %v\n", japanInfo.Region)                    // Asia
	fmt.Printf("Country UN M.49 region code: %d\n", japanInfo.Region)                    // 142
	fmt.Printf("Country emoji/flag: %v\n", japanInfo.Emoji)                              // 🇯🇵
	fmt.Printf("Country ISO-4217 Currency name in english: %v\n", japanInfo.Currency)    // Yen
	fmt.Printf("Country ISO-4217 Currency digit code: %d\n", japanInfo.Currency)         // 392
	fmt.Printf("Country ISO-4217 Currency Alpha code: %v\n", japanInfo.Currency.Alpha()) // JPY

	// Detection usage
	// Detect by name
	country := countries.ByName("angola")
	fmt.Printf("Country name in english: %v\n", country)                // Angola
	fmt.Printf("Country ISO-3166 digit code: %d\n", country)            // 24
	fmt.Printf("Country ISO-3166 Alpha-2 code: %v\n", country.Alpha2()) // AO
	fmt.Printf("Country ISO-3166 Alpha-3 code: %v\n", country.Alpha3()) // AGO
	// Detect by code/numeric
	country = countries.ByNumeric(24)
	fmt.Printf("Country name in english: %v\n", country)                // Angola
	fmt.Printf("Country ISO-3166 digit code: %d\n", country)            // 24
	fmt.Printf("Country ISO-3166 Alpha-2 code: %v\n", country.Alpha2()) // AO
	fmt.Printf("Country ISO-3166 Alpha-3 code: %v\n", country.Alpha3()) // AGO

	// Comparing usage
	// Compare by code/numeric
	if countries.ByName("angola") == countries.AGO {
		fmt.Println("Yes! It's Angola!") // Yes! It's Angola!
	}
	// Compare by name
	if strings.EqualFold("angola", countries.AGO.String()) {
		fmt.Println("Yes! It's Angola!") // Yes! It's Angola!
	}

	// Database usage
	type User struct {
		gorm.Model
		Name     string
		Country  countries.CountryCode
		Currency countries.CurrencyCode
	}
	user := &User{Name: "Helen", Country: countries.Slovenia, Currency: countries.CurrencyEUR}
	db, err := gorm.Open("postgres", 500, "host=127.0.0.2 port=5432 user=usr password=1234567 dbname=db")
	if err != nil {
		panic(err)
	}
	defer db.Close()
	db.Create(user)

options

You can take a counties names in russian language, use StringRus(). For Emoji use Emoji(). Enjoy!

import "github.com/biter777/countries"

For more complex options, consult the documentation.

contributing

  1. Welcome pull requests, bug fixes and issue reports.
    Before proposing a change, please discuss it first by raising an issue.
    Contributors list: @biter777, @gavincarr, @benja-M-1.

  2. Donate. A donation isn't necessary, but it's welcome.
    ko-fi

  3. Star us. Give us a star, please, if it's not against your religion :)

Documentation

Overview

Package countries - ISO 3166 (ISO3166-1, ISO3166, Digit, Alpha-2 and Alpha-3) countries codes and names (on eng and rus), ISO 4217 currency designators, ITU-T E.164 IDD calling phone codes, countries capitals, UN M.49 regions codes, ccTLD countries domains, IOC/NOC and FIFA letters codes, VERY FAST, NO maps[], NO slices[], NO external links/files/data, NO interface{}, NO specific dependencies, Databases compatible, Emoji countries flags and currencies support, full support ISO-3166-1, ISO-4217, ITU-T E.164, Unicode CLDR and ccTLD standarts. Full support ISO-3166-1, ISO-4217, ITU-T E.164, Unicode CLDR and ccTLD standarts.

Package countries - ISO 3166 (ISO3166-1, ISO3166, Digit, Alpha-2 and Alpha-3) countries codes and names (on eng and rus), ISO 4217 currency designators, ITU-T E.164 IDD calling phone codes, countries capitals, UN M.49 regions codes, ccTLD countries domains, IOC/NOC and FIFA letters codes, VERY FAST, NO maps[], NO slices[], NO external links/files/data, NO interface{}, NO specific dependencies, Databases compatible, Emoji countries flags and currencies support, full support ISO-3166-1, ISO-4217, ITU-T E.164, Unicode CLDR and ccTLD standarts. Full support ISO-3166-1, ISO-4217, ITU-T E.164, Unicode CLDR and ccTLD standarts.

Usage

func main() {

countryJapan := countries.Japan
fmt.Printf("Country name in english: %v\n", countryJapan)                   // Japan
fmt.Printf("Country name in russian: %v\n", countryJapan.StringRus())       // Япония
fmt.Printf("Country ISO-3166 digit code: %d\n", countryJapan)               // 392
fmt.Printf("Country ISO-3166 Alpha-2 code: %v\n", countryJapan.Alpha2())    // JP
fmt.Printf("Country ISO-3166 Alpha-3 code: %v\n", countryJapan.Alpha3())    // JPN
fmt.Printf("Country IOC/NOC code: %v\n", countryJapan.IOC())                // JPN
fmt.Printf("Country FIFA code: %v\n", countryJapan.FIFA())                  // JPN
fmt.Printf("Country Capital: %v\n", countryJapan.Capital())                 // Tokyo
fmt.Printf("Country ITU-T E.164 call code: %v\n", countryJapan.CallCodes()) // +81
fmt.Printf("Country ccTLD domain: %v\n", countryJapan.Domain())             // .jp
fmt.Printf("Country UN M.49 region name: %v\n", countryJapan.Region())      // Asia
fmt.Printf("Country UN M.49 region code: %d\n", countryJapan.Region())      // 142
fmt.Printf("Country emoji/flag: %v\n\n", countryJapan.Emoji())              // 🇯🇵

currencyJapan := countryJapan.Currency()
fmt.Printf("Country ISO-4217 Currency name in english: %v\n", currencyJapan)           // Yen
fmt.Printf("Country ISO-4217 Currency digit code: %d\n", currencyJapan)                // 392
fmt.Printf("Country ISO-4217 Currency Alpha code: %v\n", currencyJapan.Alpha())        // JPY
fmt.Printf("Country Currency emoji: %v\n", currencyJapan.Emoji())                      // 💴
fmt.Printf("Country of Currency %v: %v\n\n", currencyJapan, currencyJapan.Countries()) // Japan

// OR you can alternative use:
japanInfo := countries.Japan.Info()
fmt.Printf("Country name in english: %v\n", japanInfo.Name)                          // Japan
fmt.Printf("Country ISO-3166 digit code: %d\n", japanInfo.Code)                      // 392
fmt.Printf("Country ISO-3166 Alpha-2 code: %v\n", japanInfo.Alpha2)                  // JP
fmt.Printf("Country ISO-3166 Alpha-3 code: %v\n", japanInfo.Alpha3)                  // JPN
fmt.Printf("Country IOC/NOC code: %v\n", japanInfo.IOC)                              // JPN
fmt.Printf("Country FIFA code: %v\n", japanInfo.FIFA)                                // JPN
fmt.Printf("Country Capital: %v\n", japanInfo.Capital)                               // Tokyo
fmt.Printf("Country ITU-T E.164 call code: %v\n", japanInfo.CallCodes)               // +81
fmt.Printf("Country ccTLD domain: %v\n", japanInfo.Domain)                           // .jp
fmt.Printf("Country UN M.49 region name: %v\n", japanInfo.Region)                    // Asia
fmt.Printf("Country UN M.49 region code: %d\n", japanInfo.Region)                    // 142
fmt.Printf("Country emoji/flag: %v\n", japanInfo.Emoji)                              // 🇯🇵
fmt.Printf("Country ISO-4217 Currency name in english: %v\n", japanInfo.Currency)    // Yen
fmt.Printf("Country ISO-4217 Currency digit code: %d\n", japanInfo.Currency)         // 392
fmt.Printf("Country ISO-4217 Currency Alpha code: %v\n", japanInfo.Currency.Alpha()) // JPY

// Detection usage
// Detect by name
country := countries.ByName("angola")
fmt.Printf("Country name in english: %v\n", country)                // Angola
fmt.Printf("Country ISO-3166 digit code: %d\n", country)            // 24
fmt.Printf("Country ISO-3166 Alpha-2 code: %v\n", country.Alpha2()) // AO
fmt.Printf("Country ISO-3166 Alpha-3 code: %v\n", country.Alpha3()) // AGO
// Detect by code/numeric
country = countries.ByNumeric(24)
fmt.Printf("Country name in english: %v\n", country)                // Angola
fmt.Printf("Country ISO-3166 digit code: %d\n", country)            // 24
fmt.Printf("Country ISO-3166 Alpha-2 code: %v\n", country.Alpha2()) // AO
fmt.Printf("Country ISO-3166 Alpha-3 code: %v\n", country.Alpha3()) // AGO

// Comparing usage
// Compare by code/numeric
if countries.ByName("angola") == countries.AGO {
	fmt.Println("Yes! It's Angola!") // Yes! It's Angola!
}
// Compare by name
if strings.EqualFold("angola", countries.AGO.String()) {
	fmt.Println("Yes! It's Angola!") // Yes! It's Angola!
}

// Database usage
type User struct {
	gorm.Model
	Name     string
	Country  countries.CountryCode
	Currency countries.CurrencyCode
}
user := &User{Name: "Helen", Country: countries.Slovenia, Currency: countries.CurrencyEUR}
db, err := gorm.Open("postgres", 500, "host=127.0.0.2 port=5432 user=usr password=1234567 dbname=db")
if err != nil {
	panic(err)
}
defer db.Close()
db.Create(user)

}

Contributing

Welcome pull requests, bug fixes and issue reports.
Before proposing a change, please discuss it first by raising an issue.

Package countries - ISO 3166 (ISO3166-1, ISO3166, Digit, Alpha-2 and Alpha-3) countries codes and names (on eng and rus), ISO 4217 currency designators, ITU-T E.164 IDD calling phone codes, countries capitals, UN M.49 regions codes, ccTLD countries domains, IOC/NOC and FIFA letters codes, VERY FAST, NO maps[], NO slices[], NO external links/files/data, NO interface{}, NO specific dependencies, Databases compatible, Emoji countries flags and currencies support, full support ISO-3166-1, ISO-4217, ITU-T E.164, Unicode CLDR and ccTLD standarts. Full support ISO-3166-1, ISO-4217, ITU-T E.164, Unicode CLDR and ccTLD standarts.

Index

Constants

View Source
const TypeCallCode string = "countries.CallCode"

TypeCallCode for Typer interface

View Source
const TypeCallCodeInfo string = "countries.CallCodeInfo"

TypeCallCodeInfo for Typer interface

View Source
const TypeCapital string = "countries.Capital"

TypeCapital for Typer interface

View Source
const TypeCapitalCode string = "countries.CapitalCode"

TypeCapitalCode for Typer interface

View Source
const TypeCountry string = "countries.Country"

TypeCountry for Typer interface

View Source
const TypeCountryCode string = "countries.CountryCode"

TypeCountryCode for Typer interface

View Source
const TypeCurrency string = "countries.Currency"

TypeCurrency for Typer interface

View Source
const TypeCurrencyCode string = "countries.CurrencyCode"

TypeCurrencyCode for Typer interface

View Source
const TypeDomain string = "countries.Domain"

TypeDomain for Typer interface

View Source
const TypeDomainCode string = "countries.DomainCode"

TypeDomainCode for Typer interface

View Source
const TypeRegion string = "countries.Region"

TypeRegion for Typer interface

View Source
const TypeRegionCode string = "countries.RegionCode"

TypeRegionCode for Typer interface

View Source
const UnknownMsg string = "Unknown"

UnknownMsg - unknown return message

Variables

This section is empty.

Functions

func Total

func Total() int

Total - returns number of codes in the package, countries.Total() == len(countries.All()) but static value for performance

func TotalCallCodes

func TotalCallCodes() int

TotalCallCodes - returns number of call codes in the package, countries.TotalCallCodes() == len(countries.AllCallCodes()), but static value for performance

func TotalCapitals

func TotalCapitals() int

TotalCapitals - returns number of capitals in the package

func TotalCurrencies

func TotalCurrencies() int

TotalCurrencies - returns number of currencies in the package, countries.TotalCurrencies() == len(countries.AllCurrencies()) but static value for performance

func TotalDomains

func TotalDomains() int

TotalDomains - returns number of domains in the package, countries.TotalDomains() == len(countries.AllDomains()) but static value for performance

func TotalRegions

func TotalRegions() int

TotalRegions - returns number of Regions codes in the package

Types

type CallCode

type CallCode int64 // int64 for database/sql/driver.Valuer compatibility

CallCode - calling code of country

const (
	// CallCodeUnknown CallCode = 0
	CallCodeUnknown CallCode = 0
	// CallCode1       CallCode = 1
	CallCode1 CallCode = 1
	// CallCode7       CallCode = 7
	CallCode7 CallCode = 7
	// CallCode20      CallCode = 20
	CallCode20 CallCode = 20
	// CallCode27      CallCode = 27
	CallCode27 CallCode = 27
	// CallCode30      CallCode = 30
	CallCode30 CallCode = 30
	// CallCode31      CallCode = 31
	CallCode31 CallCode = 31
	// CallCode32      CallCode = 32
	CallCode32 CallCode = 32
	// CallCode33      CallCode = 33
	CallCode33 CallCode = 33
	// CallCode34      CallCode = 34
	CallCode34 CallCode = 34
	// CallCode36      CallCode = 36
	CallCode36 CallCode = 36
	// CallCode38      CallCode = 38
	CallCode38 CallCode = 38
	// CallCode39      CallCode = 39
	CallCode39 CallCode = 39
	// CallCode40      CallCode = 40
	CallCode40 CallCode = 40
	// CallCode41      CallCode = 41
	CallCode41 CallCode = 41
	// CallCode43      CallCode = 43
	CallCode43 CallCode = 43
	// CallCode44      CallCode = 44
	CallCode44 CallCode = 44
	// CallCode45      CallCode = 45
	CallCode45 CallCode = 45
	// CallCode46      CallCode = 46
	CallCode46 CallCode = 46
	// CallCode47      CallCode = 47
	CallCode47 CallCode = 47
	// CallCode48      CallCode = 48
	CallCode48 CallCode = 48
	// CallCode49      CallCode = 49
	CallCode49 CallCode = 49
	// CallCode51      CallCode = 51
	CallCode51 CallCode = 51
	// CallCode52      CallCode = 52
	CallCode52 CallCode = 52
	// CallCode53      CallCode = 53
	CallCode53 CallCode = 53
	// CallCode54      CallCode = 54
	CallCode54 CallCode = 54
	// CallCode55      CallCode = 55
	CallCode55 CallCode = 55
	// CallCode56      CallCode = 56
	CallCode56 CallCode = 56
	// CallCode57      CallCode = 57
	CallCode57 CallCode = 57
	// CallCode58      CallCode = 58
	CallCode58 CallCode = 58
	// CallCode60      CallCode = 60
	CallCode60 CallCode = 60
	// CallCode61      CallCode = 61
	CallCode61 CallCode = 61
	// CallCode62      CallCode = 62
	CallCode62 CallCode = 62
	// CallCode63      CallCode = 63
	CallCode63 CallCode = 63
	// CallCode64      CallCode = 64
	CallCode64 CallCode = 64
	// CallCode65      CallCode = 65
	CallCode65 CallCode = 65
	// CallCode66      CallCode = 66
	CallCode66 CallCode = 66
	// CallCode81      CallCode = 81
	CallCode81 CallCode = 81
	// CallCode82      CallCode = 82
	CallCode82 CallCode = 82
	// CallCode84      CallCode = 84
	CallCode84 CallCode = 84
	// CallCode86      CallCode = 86
	CallCode86 CallCode = 86
	// CallCode90      CallCode = 90
	CallCode90 CallCode = 90
	// CallCode91      CallCode = 91
	CallCode91 CallCode = 91
	// CallCode92      CallCode = 92
	CallCode92 CallCode = 92
	// CallCode93      CallCode = 93
	CallCode93 CallCode = 93
	// CallCode94      CallCode = 94
	CallCode94 CallCode = 94
	// CallCode95      CallCode = 95
	CallCode95 CallCode = 95
	// CallCode98      CallCode = 98
	CallCode98 CallCode = 98
	// CallCode211     CallCode = 211
	CallCode211 CallCode = 211
	// CallCode212     CallCode = 212
	CallCode212 CallCode = 212
	// CallCode213     CallCode = 213
	CallCode213 CallCode = 213
	// CallCode216     CallCode = 216
	CallCode216 CallCode = 216
	// CallCode218     CallCode = 218
	CallCode218 CallCode = 218
	// CallCode220     CallCode = 220
	CallCode220 CallCode = 220
	// CallCode221     CallCode = 221
	CallCode221 CallCode = 221
	// CallCode222     CallCode = 222
	CallCode222 CallCode = 222
	// CallCode223     CallCode = 223
	CallCode223 CallCode = 223
	// CallCode224     CallCode = 224
	CallCode224 CallCode = 224
	// CallCode225     CallCode = 225
	CallCode225 CallCode = 225
	// CallCode226     CallCode = 226
	CallCode226 CallCode = 226
	// CallCode227     CallCode = 227
	CallCode227 CallCode = 227
	// CallCode228     CallCode = 228
	CallCode228 CallCode = 228
	// CallCode229     CallCode = 229
	CallCode229 CallCode = 229
	// CallCode230     CallCode = 230
	CallCode230 CallCode = 230
	// CallCode231     CallCode = 231
	CallCode231 CallCode = 231
	// CallCode232     CallCode = 232
	CallCode232 CallCode = 232
	// CallCode233     CallCode = 233
	CallCode233 CallCode = 233
	// CallCode234     CallCode = 234
	CallCode234 CallCode = 234
	// CallCode235     CallCode = 235
	CallCode235 CallCode = 235
	// CallCode236     CallCode = 236
	CallCode236 CallCode = 236
	// CallCode237     CallCode = 237
	CallCode237 CallCode = 237
	// CallCode238     CallCode = 238
	CallCode238 CallCode = 238
	// CallCode239     CallCode = 239
	CallCode239 CallCode = 239
	// CallCode240     CallCode = 240
	CallCode240 CallCode = 240
	// CallCode241     CallCode = 241
	CallCode241 CallCode = 241
	// CallCode242     CallCode = 242
	CallCode242 CallCode = 242
	// CallCode243     CallCode = 243
	CallCode243 CallCode = 243
	// CallCode244     CallCode = 244
	CallCode244 CallCode = 244
	// CallCode245     CallCode = 245
	CallCode245 CallCode = 245
	// CallCode246     CallCode = 246
	CallCode246 CallCode = 246
	// CallCode248     CallCode = 248
	CallCode248 CallCode = 248
	// CallCode249     CallCode = 249
	CallCode249 CallCode = 249
	// CallCode250     CallCode = 250
	CallCode250 CallCode = 250
	// CallCode251     CallCode = 251
	CallCode251 CallCode = 251
	// CallCode252     CallCode = 252
	CallCode252 CallCode = 252
	// CallCode253     CallCode = 253
	CallCode253 CallCode = 253
	// CallCode254     CallCode = 254
	CallCode254 CallCode = 254
	// CallCode255     CallCode = 255
	CallCode255 CallCode = 255
	// CallCode256     CallCode = 256
	CallCode256 CallCode = 256
	// CallCode257     CallCode = 257
	CallCode257 CallCode = 257
	// CallCode258     CallCode = 258
	CallCode258 CallCode = 258
	// CallCode260     CallCode = 260
	CallCode260 CallCode = 260
	// CallCode261     CallCode = 261
	CallCode261 CallCode = 261
	// CallCode262     CallCode = 262
	CallCode262 CallCode = 262
	// CallCode263     CallCode = 263
	CallCode263 CallCode = 263
	// CallCode264     CallCode = 264
	CallCode264 CallCode = 264
	// CallCode265     CallCode = 265
	CallCode265 CallCode = 265
	// CallCode266     CallCode = 266
	CallCode266 CallCode = 266
	// CallCode267     CallCode = 267
	CallCode267 CallCode = 267
	// CallCode268     CallCode = 268
	CallCode268 CallCode = 268
	// CallCode269     CallCode = 269
	CallCode269 CallCode = 269
	// CallCode290     CallCode = 290
	CallCode290 CallCode = 290
	// CallCode291     CallCode = 291
	CallCode291 CallCode = 291
	// CallCode297     CallCode = 297
	CallCode297 CallCode = 297
	// CallCode298     CallCode = 298
	CallCode298 CallCode = 298
	// CallCode299     CallCode = 299
	CallCode299 CallCode = 299
	// CallCode350     CallCode = 350
	CallCode350 CallCode = 350
	// CallCode351     CallCode = 351
	CallCode351 CallCode = 351
	// CallCode352     CallCode = 352
	CallCode352 CallCode = 352
	// CallCode353     CallCode = 353
	CallCode353 CallCode = 353
	// CallCode354     CallCode = 354
	CallCode354 CallCode = 354
	// CallCode355     CallCode = 355
	CallCode355 CallCode = 355
	// CallCode356     CallCode = 356
	CallCode356 CallCode = 356
	// CallCode357     CallCode = 357
	CallCode357 CallCode = 357
	// CallCode358     CallCode = 358
	CallCode358 CallCode = 358
	// CallCode359     CallCode = 359
	CallCode359 CallCode = 359
	// CallCode370     CallCode = 370
	CallCode370 CallCode = 370
	// CallCode371     CallCode = 371
	CallCode371 CallCode = 371
	// CallCode372     CallCode = 372
	CallCode372 CallCode = 372
	// CallCode373     CallCode = 373
	CallCode373 CallCode = 373
	// CallCode374     CallCode = 374
	CallCode374 CallCode = 374
	// CallCode375     CallCode = 375
	CallCode375 CallCode = 375
	// CallCode376     CallCode = 376
	CallCode376 CallCode = 376
	// CallCode377     CallCode = 377
	CallCode377 CallCode = 377
	// CallCode378     CallCode = 378
	CallCode378 CallCode = 378
	// CallCode380     CallCode = 380
	CallCode380 CallCode = 380
	// CallCode381     CallCode = 381
	CallCode381 CallCode = 381
	// CallCode382     CallCode = 382
	CallCode382 CallCode = 382
	// CallCode383     CallCode = 383
	CallCode383 CallCode = 383
	// CallCode385     CallCode = 385
	CallCode385 CallCode = 385
	// CallCode386     CallCode = 386
	CallCode386 CallCode = 386
	// CallCode387     CallCode = 387
	CallCode387 CallCode = 387
	// CallCode389     CallCode = 389
	CallCode389 CallCode = 389
	// CallCode420     CallCode = 420
	CallCode420 CallCode = 420
	// CallCode421     CallCode = 421
	CallCode421 CallCode = 421
	// CallCode423     CallCode = 423
	CallCode423 CallCode = 423
	// CallCode500     CallCode = 500
	CallCode500 CallCode = 500
	// CallCode501     CallCode = 501
	CallCode501 CallCode = 501
	// CallCode502     CallCode = 502
	CallCode502 CallCode = 502
	// CallCode503     CallCode = 503
	CallCode503 CallCode = 503
	// CallCode504     CallCode = 504
	CallCode504 CallCode = 504
	// CallCode505     CallCode = 505
	CallCode505 CallCode = 505
	// CallCode506     CallCode = 506
	CallCode506 CallCode = 506
	// CallCode507     CallCode = 507
	CallCode507 CallCode = 507
	// CallCode508     CallCode = 508
	CallCode508 CallCode = 508
	// CallCode509     CallCode = 509
	CallCode509 CallCode = 509
	// CallCode590     CallCode = 590
	CallCode590 CallCode = 590
	// CallCode591     CallCode = 591
	CallCode591 CallCode = 591
	// CallCode592     CallCode = 592
	CallCode592 CallCode = 592
	// CallCode593     CallCode = 593
	CallCode593 CallCode = 593
	// CallCode594     CallCode = 594
	CallCode594 CallCode = 594
	// CallCode595     CallCode = 595
	CallCode595 CallCode = 595
	// CallCode596     CallCode = 596
	CallCode596 CallCode = 596
	// CallCode597     CallCode = 597
	CallCode597 CallCode = 597
	// CallCode598     CallCode = 598
	CallCode598 CallCode = 598
	// CallCode599     CallCode = 599
	CallCode599 CallCode = 599
	// CallCode670     CallCode = 670
	CallCode670 CallCode = 670
	// CallCode672     CallCode = 672
	CallCode672 CallCode = 672
	// CallCode673     CallCode = 673
	CallCode673 CallCode = 673
	// CallCode674     CallCode = 674
	CallCode674 CallCode = 674
	// CallCode675     CallCode = 675
	CallCode675 CallCode = 675
	// CallCode676     CallCode = 676
	CallCode676 CallCode = 676
	// CallCode677     CallCode = 677
	CallCode677 CallCode = 677
	// CallCode678     CallCode = 678
	CallCode678 CallCode = 678
	// CallCode679     CallCode = 679
	CallCode679 CallCode = 679
	// CallCode680     CallCode = 680
	CallCode680 CallCode = 680
	// CallCode681     CallCode = 681
	CallCode681 CallCode = 681
	// CallCode682     CallCode = 682
	CallCode682 CallCode = 682
	// CallCode683     CallCode = 683
	CallCode683 CallCode = 683
	// CallCode685     CallCode = 684
	CallCode685 CallCode = 685
	// CallCode686     CallCode = 686
	CallCode686 CallCode = 686
	// CallCode687     CallCode = 687
	CallCode687 CallCode = 687
	// CallCode688     CallCode = 688
	CallCode688 CallCode = 688
	// CallCode689     CallCode = 689
	CallCode689 CallCode = 689
	// CallCode690     CallCode = 690
	CallCode690 CallCode = 690
	// CallCode691     CallCode = 691
	CallCode691 CallCode = 691
	// CallCode692     CallCode = 692
	CallCode692 CallCode = 692
	// CallCode800     CallCode = 800
	CallCode800 CallCode = 800
	// CallCode850     CallCode = 850
	CallCode850 CallCode = 850
	// CallCode852     CallCode = 852
	CallCode852 CallCode = 852
	// CallCode853     CallCode = 853
	CallCode853 CallCode = 853
	// CallCode855     CallCode = 855
	CallCode855 CallCode = 855
	// CallCode856     CallCode = 856
	CallCode856 CallCode = 856
	// CallCode870     CallCode = 870
	CallCode870 CallCode = 870
	// CallCode875     CallCode = 875
	CallCode875 CallCode = 875
	// CallCode876     CallCode = 876
	CallCode876 CallCode = 876
	// CallCode877     CallCode = 877
	CallCode877 CallCode = 877
	// CallCode878     CallCode = 878
	CallCode878 CallCode = 878
	// CallCode879     CallCode = 879
	CallCode879 CallCode = 879
	// CallCode880     CallCode = 880
	CallCode880 CallCode = 880
	// CallCode881     CallCode = 881
	CallCode881 CallCode = 881
	// CallCode882     CallCode = 882
	CallCode882 CallCode = 882
	// CallCode883     CallCode = 883
	CallCode883 CallCode = 883
	// CallCode886     CallCode = 886
	CallCode886 CallCode = 886
	// CallCode888     CallCode = 888
	CallCode888 CallCode = 888
	// CallCode960     CallCode = 960
	CallCode960 CallCode = 960
	// CallCode961     CallCode = 961
	CallCode961 CallCode = 961
	// CallCode962     CallCode = 962
	CallCode962 CallCode = 962
	// CallCode963     CallCode = 963
	CallCode963 CallCode = 963
	// CallCode964     CallCode = 964
	CallCode964 CallCode = 964
	// CallCode965     CallCode = 965
	CallCode965 CallCode = 965
	// CallCode966     CallCode = 966
	CallCode966 CallCode = 966
	// CallCode967     CallCode = 967
	CallCode967 CallCode = 967
	// CallCode968     CallCode = 968
	CallCode968 CallCode = 968
	// CallCode970     CallCode = 970
	CallCode970 CallCode = 970
	// CallCode971     CallCode = 971
	CallCode971 CallCode = 971
	// CallCode972     CallCode = 972
	CallCode972 CallCode = 972
	// CallCode973     CallCode = 973
	CallCode973 CallCode = 973
	// CallCode974     CallCode = 974
	CallCode974 CallCode = 974
	// CallCode975     CallCode = 975
	CallCode975 CallCode = 975
	// CallCode976     CallCode = 976
	CallCode976 CallCode = 976
	// CallCode977     CallCode = 977
	CallCode977 CallCode = 977
	// CallCode979     CallCode = 979
	CallCode979 CallCode = 979
	// CallCode991     CallCode = 991
	CallCode991 CallCode = 991
	// CallCode992     CallCode = 992
	CallCode992 CallCode = 992
	// CallCode994     CallCode = 994
	CallCode994 CallCode = 994
	// CallCode995     CallCode = 995
	CallCode995 CallCode = 995
	// CallCode996     CallCode = 996
	CallCode996 CallCode = 996
	// CallCode998     CallCode = 998
	CallCode998 CallCode = 998
	// CallCode1242    CallCode = 1242
	CallCode1242 CallCode = 1242
	// CallCode1246    CallCode = 1246
	CallCode1246 CallCode = 1246
	// CallCode1264    CallCode = 1264
	CallCode1264 CallCode = 1264
	// CallCode1268    CallCode = 1268
	CallCode1268 CallCode = 1268
	// CallCode1284    CallCode = 1284
	CallCode1284 CallCode = 1284
	// CallCode1340    CallCode = 1340
	CallCode1340 CallCode = 1340
	// CallCode1345    CallCode = 1345
	CallCode1345 CallCode = 1345
	// CallCode1441    CallCode = 1441
	CallCode1441 CallCode = 1441
	// CallCode1473    CallCode = 1473
	CallCode1473 CallCode = 1473
	// CallCode1649    CallCode = 1649
	CallCode1649 CallCode = 1649
	// CallCode1658    CallCode = 1658
	CallCode1658 CallCode = 1658
	// CallCode1664    CallCode = 1664
	CallCode1664 CallCode = 1664
	// CallCode1670    CallCode = 1670
	CallCode1670 CallCode = 1670
	// CallCode1671    CallCode = 1671
	CallCode1671 CallCode = 1671
	// CallCode1684    CallCode = 1684
	CallCode1684 CallCode = 1684
	// CallCode1721    CallCode = 1721
	CallCode1721 CallCode = 1721
	// CallCode1758    CallCode = 1758
	CallCode1758 CallCode = 1758
	// CallCode1767    CallCode = 1767
	CallCode1767 CallCode = 1767
	// CallCode1784    CallCode = 1784
	CallCode1784 CallCode = 1784
	// CallCode1787    CallCode = 1787
	CallCode1787 CallCode = 1787
	// CallCode1808    CallCode = 1808
	CallCode1808 CallCode = 1808
	// CallCode1809    CallCode = 1809
	CallCode1809 CallCode = 1809
	// CallCode1829    CallCode = 1829
	CallCode1829 CallCode = 1829
	// CallCode1849    CallCode = 1849
	CallCode1849 CallCode = 1849
	// CallCode1868    CallCode = 1868
	CallCode1868 CallCode = 1868
	// CallCode1869    CallCode = 1869
	CallCode1869 CallCode = 1869
	// CallCode1876    CallCode = 1876
	CallCode1876 CallCode = 1876
	// CallCode1939    CallCode = 1939
	CallCode1939 CallCode = 1939
	// CallCode4779    CallCode = 4779
	CallCode4779 CallCode = 4779
	// CallCode5993    CallCode = 5993
	CallCode5993 CallCode = 5993
	// CallCode5994    CallCode = 5994
	CallCode5994 CallCode = 5994
	// CallCode5995    CallCode = 5995
	CallCode5995 CallCode = 5995
	// CallCode5997    CallCode = 5997
	CallCode5997 CallCode = 5997
	// CallCode5998    CallCode = 5998
	CallCode5998 CallCode = 5998
	// CallCode5999    CallCode = 5999
	CallCode5999 CallCode = 5999
	// CallCode993    CallCode = 993
	CallCode993 CallCode = 993
	// CallCode35818   CallCode = 35818
	CallCode35818 CallCode = 35818
	// CallCode262269  CallCode = 262269
	CallCode262269 CallCode = 262269
	// CallCode262639  CallCode = 262639
	CallCode262639 CallCode = 262639
	// CallCode441481  CallCode = 441481
	CallCode441481 CallCode = 441481
	// CallCode441534  CallCode = 441534
	CallCode441534 CallCode = 441534
	// CallCode441624  CallCode = 441624
	CallCode441624 CallCode = 441624
	// CallCode3906698 CallCode = 3906698
	CallCode3906698 CallCode = 3906698
	// CallCode6189162 CallCode = 6189162
	CallCode6189162 CallCode = 6189162
	// CallCode6189164 CallCode = 6189164
	CallCode6189164 CallCode = 6189164
)

func AllCallCodes

func AllCallCodes() []CallCode

AllCallCodes - return all countries call phone codes

func (CallCode) Countries

func (c CallCode) Countries() []CountryCode

Countries - returns CountryCodes of CallCode

func (CallCode) Info

func (c CallCode) Info() *CallCodeInfo

Info - returns CallCodeInfo

func (CallCode) IsValid

func (c CallCode) IsValid() bool

IsValid - returns true, if code is correct

func (CallCode) String

func (c CallCode) String() string

String - implements fmt.Stringer, returns a calling phone code in string, example for UK: "+44"

func (CallCode) Type

func (c CallCode) Type() string

Type implements Typer interface

type CallCodeInfo

type CallCodeInfo struct {
	Code      CallCode
	Countries []CountryCode
}

CallCodeInfo - all info about CallCode

func AllCallCodesInfo

func AllCallCodesInfo() []*CallCodeInfo

AllCallCodesInfo - return all countries call phone codes as []CallCodeInfo

func (*CallCodeInfo) Scan

func (c *CallCodeInfo) Scan(src interface{}) error

Scan implements database/sql.Scanner

func (*CallCodeInfo) Type

func (c *CallCodeInfo) Type() string

Type implements Typer interface

func (CallCodeInfo) Value

func (c CallCodeInfo) Value() (Value, error)

Value implements database/sql/driver.Valuer

type Capital

type Capital struct {
	Name    string
	Code    CapitalCode
	Country CountryCode
}

Capital - capital info

func AllCapitalsInfo

func AllCapitalsInfo() []*Capital

AllCapitalsInfo - return all capital codes as []Capital

func (*Capital) Scan

func (c *Capital) Scan(src interface{}) error

Scan implements database/sql.Scanner

func (Capital) Type

func (c Capital) Type() string

Type implements Typer interface

func (Capital) Value

func (c Capital) Value() (Value, error)

Value implements database/sql/driver.Valuer

type CapitalCode

type CapitalCode int64 // int64 for database/sql/driver.Valuer compatibility

CapitalCode - capital code

const (
	// CapitalUnknown CapitalCode = 0
	CapitalUnknown CapitalCode = 0
	// CapitalAU      CapitalCode = CapitalCode(AU)
	CapitalAU CapitalCode = CapitalCode(AU)
	// CapitalAT      CapitalCode = CapitalCode(AT)
	CapitalAT CapitalCode = CapitalCode(AT)
	// CapitalAZ      CapitalCode = CapitalCode(AZ)
	CapitalAZ CapitalCode = CapitalCode(AZ)
	// CapitalAL      CapitalCode = CapitalCode(AL)
	CapitalAL CapitalCode = CapitalCode(AL)
	// CapitalDZ      CapitalCode = CapitalCode(DZ)
	CapitalDZ CapitalCode = CapitalCode(DZ)
	// CapitalAS      CapitalCode = CapitalCode(AS)
	CapitalAS CapitalCode = CapitalCode(AS)
	// CapitalAI      CapitalCode = CapitalCode(AI)
	CapitalAI CapitalCode = CapitalCode(AI)
	// CapitalAO      CapitalCode = CapitalCode(AO)
	CapitalAO CapitalCode = CapitalCode(AO)
	// CapitalAD      CapitalCode = CapitalCode(AD)
	CapitalAD CapitalCode = CapitalCode(AD)
	// CapitalAQ      CapitalCode = CapitalCode(AQ)
	CapitalAQ CapitalCode = CapitalCode(AQ)
	// CapitalAG      CapitalCode = CapitalCode(AG)
	CapitalAG CapitalCode = CapitalCode(AG)
	// CapitalAN      CapitalCode = CapitalCode(AN)
	CapitalAN CapitalCode = CapitalCode(AN)
	// CapitalAE      CapitalCode = CapitalCode(AE)
	CapitalAE CapitalCode = CapitalCode(AE)
	// CapitalAR      CapitalCode = CapitalCode(AR)
	CapitalAR CapitalCode = CapitalCode(AR)
	// CapitalAM      CapitalCode = CapitalCode(AM)
	CapitalAM CapitalCode = CapitalCode(AM)
	// CapitalAW      CapitalCode = CapitalCode(AW)
	CapitalAW CapitalCode = CapitalCode(AW)
	// CapitalAF      CapitalCode = CapitalCode(AF)
	CapitalAF CapitalCode = CapitalCode(AF)
	// CapitalBS      CapitalCode = CapitalCode(BS)
	CapitalBS CapitalCode = CapitalCode(BS)
	// CapitalBD      CapitalCode = CapitalCode(BD)
	CapitalBD CapitalCode = CapitalCode(BD)
	// CapitalBB      CapitalCode = CapitalCode(BB)
	CapitalBB CapitalCode = CapitalCode(BB)
	// CapitalBH      CapitalCode = CapitalCode(BH)
	CapitalBH CapitalCode = CapitalCode(BH)
	// CapitalBY      CapitalCode = CapitalCode(BY)
	CapitalBY CapitalCode = CapitalCode(BY)
	// CapitalBZ      CapitalCode = CapitalCode(BZ)
	CapitalBZ CapitalCode = CapitalCode(BZ)
	// CapitalBE      CapitalCode = CapitalCode(BE)
	CapitalBE CapitalCode = CapitalCode(BE)
	// CapitalBJ      CapitalCode = CapitalCode(BJ)
	CapitalBJ CapitalCode = CapitalCode(BJ)
	// CapitalBM      CapitalCode = CapitalCode(BM)
	CapitalBM CapitalCode = CapitalCode(BM)
	// CapitalBG      CapitalCode = CapitalCode(BG)
	CapitalBG CapitalCode = CapitalCode(BG)
	// CapitalBO      CapitalCode = CapitalCode(BO)
	CapitalBO CapitalCode = CapitalCode(BO)
	// CapitalBA      CapitalCode = CapitalCode(BA)
	CapitalBA CapitalCode = CapitalCode(BA)
	// CapitalBW      CapitalCode = CapitalCode(BW)
	CapitalBW CapitalCode = CapitalCode(BW)
	// CapitalBR      CapitalCode = CapitalCode(BR)
	CapitalBR CapitalCode = CapitalCode(BR)
	// CapitalIO      CapitalCode = CapitalCode(IO)
	CapitalIO CapitalCode = CapitalCode(IO)
	// CapitalBN      CapitalCode = CapitalCode(BN)
	CapitalBN CapitalCode = CapitalCode(BN)
	// CapitalBF      CapitalCode = CapitalCode(BF)
	CapitalBF CapitalCode = CapitalCode(BF)
	// CapitalBI      CapitalCode = CapitalCode(BI)
	CapitalBI CapitalCode = CapitalCode(BI)
	// CapitalBT      CapitalCode = CapitalCode(BT)
	CapitalBT CapitalCode = CapitalCode(BT)
	// CapitalVU      CapitalCode = CapitalCode(VU)
	CapitalVU CapitalCode = CapitalCode(VU)
	// CapitalVA      CapitalCode = CapitalCode(VA)
	CapitalVA CapitalCode = CapitalCode(VA)
	// CapitalGB      CapitalCode = CapitalCode(GB)
	CapitalGB CapitalCode = CapitalCode(GB)
	// CapitalHU      CapitalCode = CapitalCode(HU)
	CapitalHU CapitalCode = CapitalCode(HU)
	// CapitalVE      CapitalCode = CapitalCode(VE)
	CapitalVE CapitalCode = CapitalCode(VE)
	// CapitalVG      CapitalCode = CapitalCode(VG)
	CapitalVG CapitalCode = CapitalCode(VG)
	// CapitalVI      CapitalCode = CapitalCode(VI)
	CapitalVI CapitalCode = CapitalCode(VI)
	// CapitalTL      CapitalCode = CapitalCode(TL)
	CapitalTL CapitalCode = CapitalCode(TL)
	// CapitalVN      CapitalCode = CapitalCode(VN)
	CapitalVN CapitalCode = CapitalCode(VN)
	// CapitalGA      CapitalCode = CapitalCode(GA)
	CapitalGA CapitalCode = CapitalCode(GA)
	// CapitalHT      CapitalCode = CapitalCode(HT)
	CapitalHT CapitalCode = CapitalCode(HT)
	// CapitalGY      CapitalCode = CapitalCode(GY)
	CapitalGY CapitalCode = CapitalCode(GY)
	// CapitalGM      CapitalCode = CapitalCode(GM)
	CapitalGM CapitalCode = CapitalCode(GM)
	// CapitalGH      CapitalCode = CapitalCode(GH)
	CapitalGH CapitalCode = CapitalCode(GH)
	// CapitalGP      CapitalCode = CapitalCode(GP)
	CapitalGP CapitalCode = CapitalCode(GP)
	// CapitalGT      CapitalCode = CapitalCode(GT)
	CapitalGT CapitalCode = CapitalCode(GT)
	// CapitalGN      CapitalCode = CapitalCode(GN)
	CapitalGN CapitalCode = CapitalCode(GN)
	// CapitalGW      CapitalCode = CapitalCode(GW)
	CapitalGW CapitalCode = CapitalCode(GW)
	// CapitalDE      CapitalCode = CapitalCode(DE)
	CapitalDE CapitalCode = CapitalCode(DE)
	// CapitalGI      CapitalCode = CapitalCode(GI)
	CapitalGI CapitalCode = CapitalCode(GI)
	// CapitalHN      CapitalCode = CapitalCode(HN)
	CapitalHN CapitalCode = CapitalCode(HN)
	// CapitalHK      CapitalCode = CapitalCode(HK)
	CapitalHK CapitalCode = CapitalCode(HK)
	// CapitalGD      CapitalCode = CapitalCode(GD)
	CapitalGD CapitalCode = CapitalCode(GD)
	// CapitalGL      CapitalCode = CapitalCode(GL)
	CapitalGL CapitalCode = CapitalCode(GL)
	// CapitalGR      CapitalCode = CapitalCode(GR)
	CapitalGR CapitalCode = CapitalCode(GR)
	// CapitalGE      CapitalCode = CapitalCode(GE)
	CapitalGE CapitalCode = CapitalCode(GE)
	// CapitalGU      CapitalCode = CapitalCode(GU)
	CapitalGU CapitalCode = CapitalCode(GU)
	// CapitalDK      CapitalCode = CapitalCode(DK)
	CapitalDK CapitalCode = CapitalCode(DK)
	// CapitalCD      CapitalCode = CapitalCode(CD)
	CapitalCD CapitalCode = CapitalCode(CD)
	// CapitalDJ      CapitalCode = CapitalCode(DJ)
	CapitalDJ CapitalCode = CapitalCode(DJ)
	// CapitalDM      CapitalCode = CapitalCode(DM)
	CapitalDM CapitalCode = CapitalCode(DM)
	// CapitalDO      CapitalCode = CapitalCode(DO)
	CapitalDO CapitalCode = CapitalCode(DO)
	// CapitalEG      CapitalCode = CapitalCode(EG)
	CapitalEG CapitalCode = CapitalCode(EG)
	// CapitalZM      CapitalCode = CapitalCode(ZM)
	CapitalZM CapitalCode = CapitalCode(ZM)
	// CapitalEH      CapitalCode = CapitalCode(EH)
	CapitalEH CapitalCode = CapitalCode(EH)
	// CapitalZW      CapitalCode = CapitalCode(ZW)
	CapitalZW CapitalCode = CapitalCode(ZW)
	// CapitalIL      CapitalCode = CapitalCode(IL)
	CapitalIL CapitalCode = CapitalCode(IL)
	// CapitalIN      CapitalCode = CapitalCode(IN)
	CapitalIN CapitalCode = CapitalCode(IN)
	// CapitalID      CapitalCode = CapitalCode(ID)
	CapitalID CapitalCode = CapitalCode(ID)
	// CapitalJO      CapitalCode = CapitalCode(JO)
	CapitalJO CapitalCode = CapitalCode(JO)
	// CapitalIQ      CapitalCode = CapitalCode(IQ)
	CapitalIQ CapitalCode = CapitalCode(IQ)
	// CapitalIR      CapitalCode = CapitalCode(IR)
	CapitalIR CapitalCode = CapitalCode(IR)
	// CapitalIE      CapitalCode = CapitalCode(IE)
	CapitalIE CapitalCode = CapitalCode(IE)
	// CapitalIS      CapitalCode = CapitalCode(IS)
	CapitalIS CapitalCode = CapitalCode(IS)
	// CapitalES      CapitalCode = CapitalCode(ES)
	CapitalES CapitalCode = CapitalCode(ES)
	// CapitalIT      CapitalCode = CapitalCode(IT)
	CapitalIT CapitalCode = CapitalCode(IT)
	// CapitalYE      CapitalCode = CapitalCode(YE)
	CapitalYE CapitalCode = CapitalCode(YE)
	// CapitalKZ      CapitalCode = CapitalCode(KZ)
	CapitalKZ CapitalCode = CapitalCode(KZ)
	// CapitalKY      CapitalCode = CapitalCode(KY)
	CapitalKY CapitalCode = CapitalCode(KY)
	// CapitalKH      CapitalCode = CapitalCode(KH)
	CapitalKH CapitalCode = CapitalCode(KH)
	// CapitalCM      CapitalCode = CapitalCode(CM)
	CapitalCM CapitalCode = CapitalCode(CM)
	// CapitalCA      CapitalCode = CapitalCode(CA)
	CapitalCA CapitalCode = CapitalCode(CA)
	// CapitalQA      CapitalCode = CapitalCode(QA)
	CapitalQA CapitalCode = CapitalCode(QA)
	// CapitalKE      CapitalCode = CapitalCode(KE)
	CapitalKE CapitalCode = CapitalCode(KE)
	// CapitalCY      CapitalCode = CapitalCode(CY)
	CapitalCY CapitalCode = CapitalCode(CY)
	// CapitalKI      CapitalCode = CapitalCode(KI)
	CapitalKI CapitalCode = CapitalCode(KI)
	// CapitalCN      CapitalCode = CapitalCode(CN)
	CapitalCN CapitalCode = CapitalCode(CN)
	// CapitalCC      CapitalCode = CapitalCode(CC)
	CapitalCC CapitalCode = CapitalCode(CC)
	// CapitalCO      CapitalCode = CapitalCode(CO)
	CapitalCO CapitalCode = CapitalCode(CO)
	// CapitalKM      CapitalCode = CapitalCode(KM)
	CapitalKM CapitalCode = CapitalCode(KM)
	// CapitalCG      CapitalCode = CapitalCode(CG)
	CapitalCG CapitalCode = CapitalCode(CG)
	// CapitalKP      CapitalCode = CapitalCode(KP)
	CapitalKP CapitalCode = CapitalCode(KP)
	// CapitalKR      CapitalCode = CapitalCode(KR)
	CapitalKR CapitalCode = CapitalCode(KR)
	// CapitalCR      CapitalCode = CapitalCode(CR)
	CapitalCR CapitalCode = CapitalCode(CR)
	// CapitalCI      CapitalCode = CapitalCode(CI)
	CapitalCI CapitalCode = CapitalCode(CI)
	// CapitalCU      CapitalCode = CapitalCode(CU)
	CapitalCU CapitalCode = CapitalCode(CU)
	// CapitalKW      CapitalCode = CapitalCode(KW)
	CapitalKW CapitalCode = CapitalCode(KW)
	// CapitalKG      CapitalCode = CapitalCode(KG)
	CapitalKG CapitalCode = CapitalCode(KG)
	// CapitalLA      CapitalCode = CapitalCode(LA)
	CapitalLA CapitalCode = CapitalCode(LA)
	// CapitalLV      CapitalCode = CapitalCode(LV)
	CapitalLV CapitalCode = CapitalCode(LV)
	// CapitalLS      CapitalCode = CapitalCode(LS)
	CapitalLS CapitalCode = CapitalCode(LS)
	// CapitalLR      CapitalCode = CapitalCode(LR)
	CapitalLR CapitalCode = CapitalCode(LR)
	// CapitalLB      CapitalCode = CapitalCode(LB)
	CapitalLB CapitalCode = CapitalCode(LB)
	// CapitalLY      CapitalCode = CapitalCode(LY)
	CapitalLY CapitalCode = CapitalCode(LY)
	// CapitalLT      CapitalCode = CapitalCode(LT)
	CapitalLT CapitalCode = CapitalCode(LT)
	// CapitalLI      CapitalCode = CapitalCode(LI)
	CapitalLI CapitalCode = CapitalCode(LI)
	// CapitalLU      CapitalCode = CapitalCode(LU)
	CapitalLU CapitalCode = CapitalCode(LU)
	// CapitalMU      CapitalCode = CapitalCode(MU)
	CapitalMU CapitalCode = CapitalCode(MU)
	// CapitalMR      CapitalCode = CapitalCode(MR)
	CapitalMR CapitalCode = CapitalCode(MR)
	// CapitalMG      CapitalCode = CapitalCode(MG)
	CapitalMG CapitalCode = CapitalCode(MG)
	// CapitalYT      CapitalCode = CapitalCode(YT)
	CapitalYT CapitalCode = CapitalCode(YT)
	// CapitalMO      CapitalCode = CapitalCode(MO)
	CapitalMO CapitalCode = CapitalCode(MO)
	// CapitalMK      CapitalCode = CapitalCode(MK)
	CapitalMK CapitalCode = CapitalCode(MK)
	// CapitalMW      CapitalCode = CapitalCode(MW)
	CapitalMW CapitalCode = CapitalCode(MW)
	// CapitalMY      CapitalCode = CapitalCode(MY)
	CapitalMY CapitalCode = CapitalCode(MY)
	// CapitalML      CapitalCode = CapitalCode(ML)
	CapitalML CapitalCode = CapitalCode(ML)
	// CapitalMV      CapitalCode = CapitalCode(MV)
	CapitalMV CapitalCode = CapitalCode(MV)
	// CapitalMT      CapitalCode = CapitalCode(MT)
	CapitalMT CapitalCode = CapitalCode(MT)
	// CapitalMP      CapitalCode = CapitalCode(MP)
	CapitalMP CapitalCode = CapitalCode(MP)
	// CapitalMA      CapitalCode = CapitalCode(MA)
	CapitalMA CapitalCode = CapitalCode(MA)
	// CapitalMQ      CapitalCode = CapitalCode(MQ)
	CapitalMQ CapitalCode = CapitalCode(MQ)
	// CapitalMH      CapitalCode = CapitalCode(MH)
	CapitalMH CapitalCode = CapitalCode(MH)
	// CapitalMX      CapitalCode = CapitalCode(MX)
	CapitalMX CapitalCode = CapitalCode(MX)
	// CapitalFM      CapitalCode = CapitalCode(FM)
	CapitalFM CapitalCode = CapitalCode(FM)
	// CapitalMZ      CapitalCode = CapitalCode(MZ)
	CapitalMZ CapitalCode = CapitalCode(MZ)
	// CapitalMD      CapitalCode = CapitalCode(MD)
	CapitalMD CapitalCode = CapitalCode(MD)
	// CapitalMC      CapitalCode = CapitalCode(MC)
	CapitalMC CapitalCode = CapitalCode(MC)
	// CapitalMN      CapitalCode = CapitalCode(MN)
	CapitalMN CapitalCode = CapitalCode(MN)
	// CapitalMS      CapitalCode = CapitalCode(MS)
	CapitalMS CapitalCode = CapitalCode(MS)
	// CapitalMM      CapitalCode = CapitalCode(MM)
	CapitalMM CapitalCode = CapitalCode(MM)
	// CapitalNA      CapitalCode = CapitalCode(NA)
	CapitalNA CapitalCode = CapitalCode(NA)
	// CapitalNR      CapitalCode = CapitalCode(NR)
	CapitalNR CapitalCode = CapitalCode(NR)
	// CapitalNP      CapitalCode = CapitalCode(NP)
	CapitalNP CapitalCode = CapitalCode(NP)
	// CapitalNE      CapitalCode = CapitalCode(NE)
	CapitalNE CapitalCode = CapitalCode(NE)
	// CapitalNG      CapitalCode = CapitalCode(NG)
	CapitalNG CapitalCode = CapitalCode(NG)
	// CapitalNL      CapitalCode = CapitalCode(NL)
	CapitalNL CapitalCode = CapitalCode(NL)
	// CapitalNI      CapitalCode = CapitalCode(NI)
	CapitalNI CapitalCode = CapitalCode(NI)
	// CapitalNU      CapitalCode = CapitalCode(NU)
	CapitalNU CapitalCode = CapitalCode(NU)
	// CapitalNZ      CapitalCode = CapitalCode(NZ)
	CapitalNZ CapitalCode = CapitalCode(NZ)
	// CapitalNC      CapitalCode = CapitalCode(NC)
	CapitalNC CapitalCode = CapitalCode(NC)
	// CapitalNO      CapitalCode = CapitalCode(NO)
	CapitalNO CapitalCode = CapitalCode(NO)
	// CapitalOM      CapitalCode = CapitalCode(OM)
	CapitalOM CapitalCode = CapitalCode(OM)
	// CapitalBV      CapitalCode = CapitalCode(BV)
	CapitalBV CapitalCode = CapitalCode(BV)
	// CapitalIM      CapitalCode = CapitalCode(IM)
	CapitalIM CapitalCode = CapitalCode(IM)
	// CapitalNF      CapitalCode = CapitalCode(NF)
	CapitalNF CapitalCode = CapitalCode(NF)
	// CapitalPN      CapitalCode = CapitalCode(PN)
	CapitalPN CapitalCode = CapitalCode(PN)
	// CapitalCX      CapitalCode = CapitalCode(CX)
	CapitalCX CapitalCode = CapitalCode(CX)
	// CapitalSH      CapitalCode = CapitalCode(SH)
	CapitalSH CapitalCode = CapitalCode(SH)
	// CapitalWF      CapitalCode = CapitalCode(WF)
	CapitalWF CapitalCode = CapitalCode(WF)
	// CapitalHM      CapitalCode = CapitalCode(HM)
	CapitalHM CapitalCode = CapitalCode(HM)
	// CapitalCV      CapitalCode = CapitalCode(CV)
	CapitalCV CapitalCode = CapitalCode(CV)
	// CapitalCK      CapitalCode = CapitalCode(CK)
	CapitalCK CapitalCode = CapitalCode(CK)
	// CapitalWS      CapitalCode = CapitalCode(WS)
	CapitalWS CapitalCode = CapitalCode(WS)
	// CapitalSJ      CapitalCode = CapitalCode(SJ)
	CapitalSJ CapitalCode = CapitalCode(SJ)
	// CapitalTC      CapitalCode = CapitalCode(TC)
	CapitalTC CapitalCode = CapitalCode(TC)
	// CapitalUM      CapitalCode = CapitalCode(UM)
	CapitalUM CapitalCode = CapitalCode(UM)
	// CapitalPK      CapitalCode = CapitalCode(PK)
	CapitalPK CapitalCode = CapitalCode(PK)
	// CapitalPW      CapitalCode = CapitalCode(PW)
	CapitalPW CapitalCode = CapitalCode(PW)
	// CapitalPS      CapitalCode = CapitalCode(PS)
	CapitalPS CapitalCode = CapitalCode(PS)
	// CapitalPA      CapitalCode = CapitalCode(PA)
	CapitalPA CapitalCode = CapitalCode(PA)
	// CapitalPG      CapitalCode = CapitalCode(PG)
	CapitalPG CapitalCode = CapitalCode(PG)
	// CapitalPY      CapitalCode = CapitalCode(PY)
	CapitalPY CapitalCode = CapitalCode(PY)
	// CapitalPE      CapitalCode = CapitalCode(PE)
	CapitalPE CapitalCode = CapitalCode(PE)
	// CapitalPL      CapitalCode = CapitalCode(PL)
	CapitalPL CapitalCode = CapitalCode(PL)
	// CapitalPT      CapitalCode = CapitalCode(PT)
	CapitalPT CapitalCode = CapitalCode(PT)
	// CapitalPR      CapitalCode = CapitalCode(PR)
	CapitalPR CapitalCode = CapitalCode(PR)
	// CapitalRE      CapitalCode = CapitalCode(RE)
	CapitalRE CapitalCode = CapitalCode(RE)
	// CapitalRU      CapitalCode = CapitalCode(RU)
	CapitalRU CapitalCode = CapitalCode(RU)
	// CapitalRW      CapitalCode = CapitalCode(RW)
	CapitalRW CapitalCode = CapitalCode(RW)
	// CapitalRO      CapitalCode = CapitalCode(RO)
	CapitalRO CapitalCode = CapitalCode(RO)
	// CapitalSV      CapitalCode = CapitalCode(SV)
	CapitalSV CapitalCode = CapitalCode(SV)
	// CapitalSM      CapitalCode = CapitalCode(SM)
	CapitalSM CapitalCode = CapitalCode(SM)
	// CapitalST      CapitalCode = CapitalCode(ST)
	CapitalST CapitalCode = CapitalCode(ST)
	// CapitalSA      CapitalCode = CapitalCode(SA)
	CapitalSA CapitalCode = CapitalCode(SA)
	// CapitalSZ      CapitalCode = CapitalCode(SZ)
	CapitalSZ CapitalCode = CapitalCode(SZ)
	// CapitalSC      CapitalCode = CapitalCode(SC)
	CapitalSC CapitalCode = CapitalCode(SC)
	// CapitalSN      CapitalCode = CapitalCode(SN)
	CapitalSN CapitalCode = CapitalCode(SN)
	// CapitalPM      CapitalCode = CapitalCode(PM)
	CapitalPM CapitalCode = CapitalCode(PM)
	// CapitalVC      CapitalCode = CapitalCode(VC)
	CapitalVC CapitalCode = CapitalCode(VC)
	// CapitalKN      CapitalCode = CapitalCode(KN)
	CapitalKN CapitalCode = CapitalCode(KN)
	// CapitalLC      CapitalCode = CapitalCode(LC)
	CapitalLC CapitalCode = CapitalCode(LC)
	// CapitalSG      CapitalCode = CapitalCode(SG)
	CapitalSG CapitalCode = CapitalCode(SG)
	// CapitalSY      CapitalCode = CapitalCode(SY)
	CapitalSY CapitalCode = CapitalCode(SY)
	// CapitalSK      CapitalCode = CapitalCode(SK)
	CapitalSK CapitalCode = CapitalCode(SK)
	// CapitalSI      CapitalCode = CapitalCode(SI)
	CapitalSI CapitalCode = CapitalCode(SI)
	// CapitalUS      CapitalCode = CapitalCode(US)
	CapitalUS CapitalCode = CapitalCode(US)
	// CapitalSB      CapitalCode = CapitalCode(SB)
	CapitalSB CapitalCode = CapitalCode(SB)
	// CapitalSO      CapitalCode = CapitalCode(SO)
	CapitalSO CapitalCode = CapitalCode(SO)
	// CapitalSD      CapitalCode = CapitalCode(SD)
	CapitalSD CapitalCode = CapitalCode(SD)
	// CapitalSR      CapitalCode = CapitalCode(SR)
	CapitalSR CapitalCode = CapitalCode(SR)
	// CapitalSL      CapitalCode = CapitalCode(SL)
	CapitalSL CapitalCode = CapitalCode(SL)
	// CapitalTJ      CapitalCode = CapitalCode(TJ)
	CapitalTJ CapitalCode = CapitalCode(TJ)
	// CapitalTW      CapitalCode = CapitalCode(TW)
	CapitalTW CapitalCode = CapitalCode(TW)
	// CapitalTH      CapitalCode = CapitalCode(TH)
	CapitalTH CapitalCode = CapitalCode(TH)
	// CapitalTZ      CapitalCode = CapitalCode(TZ)
	CapitalTZ CapitalCode = CapitalCode(TZ)
	// CapitalTG      CapitalCode = CapitalCode(TG)
	CapitalTG CapitalCode = CapitalCode(TG)
	// CapitalTK      CapitalCode = CapitalCode(TK)
	CapitalTK CapitalCode = CapitalCode(TK)
	// CapitalTO      CapitalCode = CapitalCode(TO)
	CapitalTO CapitalCode = CapitalCode(TO)
	// CapitalTT      CapitalCode = CapitalCode(TT)
	CapitalTT CapitalCode = CapitalCode(TT)
	// CapitalTV      CapitalCode = CapitalCode(TV)
	CapitalTV CapitalCode = CapitalCode(TV)
	// CapitalTN      CapitalCode = CapitalCode(TN)
	CapitalTN CapitalCode = CapitalCode(TN)
	// CapitalTM      CapitalCode = CapitalCode(TM)
	CapitalTM CapitalCode = CapitalCode(TM)
	// CapitalTR      CapitalCode = CapitalCode(TR)
	CapitalTR CapitalCode = CapitalCode(TR)
	// CapitalUG      CapitalCode = CapitalCode(UG)
	CapitalUG CapitalCode = CapitalCode(UG)
	// CapitalUZ      CapitalCode = CapitalCode(UZ)
	CapitalUZ CapitalCode = CapitalCode(UZ)
	// CapitalUA      CapitalCode = CapitalCode(UA)
	CapitalUA CapitalCode = CapitalCode(UA)
	// CapitalUY      CapitalCode = CapitalCode(UY)
	CapitalUY CapitalCode = CapitalCode(UY)
	// CapitalFO      CapitalCode = CapitalCode(FO)
	CapitalFO CapitalCode = CapitalCode(FO)
	// CapitalFJ      CapitalCode = CapitalCode(FJ)
	CapitalFJ CapitalCode = CapitalCode(FJ)
	// CapitalPH      CapitalCode = CapitalCode(PH)
	CapitalPH CapitalCode = CapitalCode(PH)
	// CapitalFI      CapitalCode = CapitalCode(FI)
	CapitalFI CapitalCode = CapitalCode(FI)
	// CapitalFK      CapitalCode = CapitalCode(FK)
	CapitalFK CapitalCode = CapitalCode(FK)
	// CapitalFR      CapitalCode = CapitalCode(FR)
	CapitalFR CapitalCode = CapitalCode(FR)
	// CapitalGF      CapitalCode = CapitalCode(GF)
	CapitalGF CapitalCode = CapitalCode(GF)
	// CapitalPF      CapitalCode = CapitalCode(PF)
	CapitalPF CapitalCode = CapitalCode(PF)
	// CapitalTF      CapitalCode = CapitalCode(TF)
	CapitalTF CapitalCode = CapitalCode(TF)
	// CapitalHR      CapitalCode = CapitalCode(HR)
	CapitalHR CapitalCode = CapitalCode(HR)
	// CapitalCF      CapitalCode = CapitalCode(CF)
	CapitalCF CapitalCode = CapitalCode(CF)
	// CapitalTD      CapitalCode = CapitalCode(TD)
	CapitalTD CapitalCode = CapitalCode(TD)
	// CapitalCZ      CapitalCode = CapitalCode(CZ)
	CapitalCZ CapitalCode = CapitalCode(CZ)
	// CapitalCL      CapitalCode = CapitalCode(CL)
	CapitalCL CapitalCode = CapitalCode(CL)
	// CapitalCH      CapitalCode = CapitalCode(CH)
	CapitalCH CapitalCode = CapitalCode(CH)
	// CapitalSE      CapitalCode = CapitalCode(SE)
	CapitalSE CapitalCode = CapitalCode(SE)
	// CapitalXS      CapitalCode = CapitalCode(XS)
	CapitalXS CapitalCode = CapitalCode(XS)
	// CapitalLK      CapitalCode = CapitalCode(LK)
	CapitalLK CapitalCode = CapitalCode(LK)
	// CapitalEC      CapitalCode = CapitalCode(EC)
	CapitalEC CapitalCode = CapitalCode(EC)
	// CapitalGQ      CapitalCode = CapitalCode(GQ)
	CapitalGQ CapitalCode = CapitalCode(GQ)
	// CapitalER      CapitalCode = CapitalCode(ER)
	CapitalER CapitalCode = CapitalCode(ER)
	// CapitalEE      CapitalCode = CapitalCode(EE)
	CapitalEE CapitalCode = CapitalCode(EE)
	// CapitalET      CapitalCode = CapitalCode(ET)
	CapitalET CapitalCode = CapitalCode(ET)
	// CapitalZA      CapitalCode = CapitalCode(ZA)
	CapitalZA CapitalCode = CapitalCode(ZA)
	// CapitalYU      CapitalCode = CapitalCode(YU)
	CapitalYU CapitalCode = CapitalCode(YU)
	// CapitalGS      CapitalCode = CapitalCode(GS)
	CapitalGS CapitalCode = CapitalCode(GS)
	// CapitalJM      CapitalCode = CapitalCode(JM)
	CapitalJM CapitalCode = CapitalCode(JM)
	// CapitalME      CapitalCode = CapitalCode(ME)
	CapitalME CapitalCode = CapitalCode(ME)
	// CapitalBL      CapitalCode = CapitalCode(BL)
	CapitalBL CapitalCode = CapitalCode(BL)
	// CapitalSX      CapitalCode = CapitalCode(SX)
	CapitalSX CapitalCode = CapitalCode(SX)
	// CapitalRS      CapitalCode = CapitalCode(RS)
	CapitalRS CapitalCode = CapitalCode(RS)
	// CapitalAX      CapitalCode = CapitalCode(AX)
	CapitalAX CapitalCode = CapitalCode(AX)
	// CapitalBQ      CapitalCode = CapitalCode(BQ)
	CapitalBQ CapitalCode = CapitalCode(BQ)
	// CapitalGG      CapitalCode = CapitalCode(GG)
	CapitalGG CapitalCode = CapitalCode(GG)
	// CapitalJE      CapitalCode = CapitalCode(JE)
	CapitalJE CapitalCode = CapitalCode(JE)
	// CapitalCW      CapitalCode = CapitalCode(CW)
	CapitalCW CapitalCode = CapitalCode(CW)
	// CapitalMF      CapitalCode = CapitalCode(MF)
	CapitalMF CapitalCode = CapitalCode(MF)
	// CapitalSS      CapitalCode = CapitalCode(SS)
	CapitalSS CapitalCode = CapitalCode(SS)
	// CapitalXK      CapitalCode = CapitalCode(XK)
	CapitalXK CapitalCode = CapitalCode(XK)
	// CapitalJP      CapitalCode = CapitalCode(JP)
	CapitalJP CapitalCode = CapitalCode(JP)
	// CapitalXX CapitalCode = CapitalCode(XX)
	CapitalXX CapitalCode = CapitalCode(XX)
)

func AllCapitals

func AllCapitals() []CapitalCode

AllCapitals - return all capital codes

func CapitalCodeByName

func CapitalCodeByName(name string) CapitalCode

CapitalCodeByName - return CapitalCode by name, case-insensitive, example: capitalAE := CapitalCodeByName("Abu-Dhabi") OR capitalAE := CapitalCodeByName("abu-dhabi")

func (CapitalCode) Country

func (c CapitalCode) Country() CountryCode

Country - returns a country of capital

func (CapitalCode) Info

func (c CapitalCode) Info() *Capital

Info - return CapitalCode as Capital info

func (CapitalCode) IsValid

func (c CapitalCode) IsValid() bool

IsValid - returns true, if code is correct

func (CapitalCode) String

func (c CapitalCode) String() string

String - implements fmt.Stringer, returns a english name the capital of country

func (CapitalCode) Type

func (c CapitalCode) Type() string

Type implements Typer interface

type Country

type Country struct {
	Name      string       `json:"name"`
	Alpha2    string       `json:"cca2"`
	Alpha3    string       `json:"cca3"`
	IOC       string       `json:"ioc"`
	FIFA      string       `json:"fifa"`
	Emoji     string       `json:"emoji"`
	Code      CountryCode  `json:"code"`
	Currency  CurrencyCode `json:"currency"`
	Capital   CapitalCode  `json:"capital"`
	CallCodes []CallCode   `json:"callingCode"`
	Domain    DomainCode   `json:"domain"`
	Region    RegionCode   `json:"region"`
}

Country - all info about country

func AllInfo

func AllInfo() []*Country

AllInfo - return all currencies as []Currency

func (*Country) Scan

func (country *Country) Scan(src interface{}) error

Scan implements database/sql.Scanner

func (*Country) Type

func (country *Country) Type() string

Type implements Typer interface.

func (Country) Value

func (country Country) Value() (Value, error)

Value implements database/sql/driver.Valuer

type CountryCode

type CountryCode int64 // int64 for database/sql/driver.Valuer compatibility

CountryCode - country code (254 countries). Three codes present, for example Russia == RU == RUS == 643.

const (
	// Unknown                                CountryCode = 0
	Unknown CountryCode = 0
	// International                          CountryCode = 999
	International CountryCode = 999
	// Albania                                CountryCode = 8
	Albania CountryCode = 8
	// Algeria                                CountryCode = 12
	Algeria CountryCode = 12
	// AmericanSamoa                          CountryCode = 16
	AmericanSamoa CountryCode = 16
	// Andorra                                CountryCode = 20
	Andorra CountryCode = 20
	// Angola                                 CountryCode = 24
	Angola CountryCode = 24
	// Anguilla                               CountryCode = 660
	Anguilla CountryCode = 660
	// Antarctica                             CountryCode = 10
	Antarctica CountryCode = 10
	// AntiguaAndBarbuda                      CountryCode = 28
	AntiguaAndBarbuda CountryCode = 28
	// Argentina                              CountryCode = 32
	Argentina CountryCode = 32
	// Armenia                                CountryCode = 51
	Armenia CountryCode = 51
	// Aruba                                  CountryCode = 533
	Aruba CountryCode = 533
	// Australia                              CountryCode = 36
	Australia CountryCode = 36
	// Austria                                CountryCode = 40
	Austria CountryCode = 40
	// Azerbaijan                             CountryCode = 31
	Azerbaijan CountryCode = 31
	// Bahamas                                CountryCode = 44
	Bahamas CountryCode = 44
	// Bahrain                                CountryCode = 48
	Bahrain CountryCode = 48
	// Bangladesh                             CountryCode = 50
	Bangladesh CountryCode = 50
	// Barbados                               CountryCode = 52
	Barbados CountryCode = 52
	// Belarus                                CountryCode = 112
	Belarus CountryCode = 112
	// Belgium                                CountryCode = 56
	Belgium CountryCode = 56
	// Belize                                 CountryCode = 84
	Belize CountryCode = 84
	// Benin                                  CountryCode = 204
	Benin CountryCode = 204
	// Bermuda                                CountryCode = 60
	Bermuda CountryCode = 60
	// Bhutan                                 CountryCode = 64
	Bhutan CountryCode = 64
	// Bolivia                                CountryCode = 68
	Bolivia CountryCode = 68
	// BosniaAndHerzegovina                   CountryCode = 70
	BosniaAndHerzegovina CountryCode = 70
	// Botswana                               CountryCode = 72
	Botswana CountryCode = 72
	// Bouvet                                 CountryCode = 74
	Bouvet CountryCode = 74
	// Brazil                                 CountryCode = 76
	Brazil CountryCode = 76
	// BritishIndianOceanTerritory            CountryCode = 86
	BritishIndianOceanTerritory CountryCode = 86
	// Brunei                                 CountryCode = 96
	Brunei CountryCode = 96
	// Bulgaria                               CountryCode = 100
	Bulgaria CountryCode = 100
	// BurkinaFaso                            CountryCode = 854
	BurkinaFaso CountryCode = 854
	// Burundi                                CountryCode = 108
	Burundi CountryCode = 108
	// Cambodia                               CountryCode = 116
	Cambodia CountryCode = 116
	// Cameroon                               CountryCode = 120
	Cameroon CountryCode = 120
	// Canada                                 CountryCode = 124
	Canada CountryCode = 124
	// CapeVerde                              CountryCode = 132
	CapeVerde CountryCode = 132
	// CaboVerde                              CountryCode = 132
	CaboVerde CountryCode = 132
	// CaymanIslands                          CountryCode = 136
	CaymanIslands CountryCode = 136
	// CentralAfricanRepublic                 CountryCode = 140
	CentralAfricanRepublic CountryCode = 140
	// Chad                                   CountryCode = 148
	Chad CountryCode = 148
	// ChannelIslands                         CountryCode = 830
	ChannelIslands CountryCode = 830
	// Chile                                  CountryCode = 152
	Chile CountryCode = 152
	// China                                  CountryCode = 156
	China CountryCode = 156
	// ChristmasIsland                        CountryCode = 162
	ChristmasIsland CountryCode = 162
	// CocosIslands                           CountryCode = 166
	CocosIslands CountryCode = 166
	// Colombia                               CountryCode = 170
	Colombia CountryCode = 170
	// Comoros                                CountryCode = 174
	Comoros CountryCode = 174
	// Congo                                  CountryCode = 178
	Congo CountryCode = 178
	// CongoDemocracticRepublic               CountryCode = 180
	CongoDemocracticRepublic CountryCode = 180
	// CookIslands                            CountryCode = 184
	CookIslands CountryCode = 184
	// CostaRica                              CountryCode = 188
	CostaRica CountryCode = 188
	// CoteDIvoire                            CountryCode = 384
	CoteDIvoire CountryCode = 384
	// IvoryCoast                             CountryCode = 384
	IvoryCoast CountryCode = 384
	// Croatia                                CountryCode = 191
	Croatia CountryCode = 191
	// Cuba                                   CountryCode = 192
	Cuba CountryCode = 192
	// Cyprus                                 CountryCode = 196
	Cyprus CountryCode = 196
	// CzechRepublic                          CountryCode = 203
	CzechRepublic CountryCode = 203
	// Denmark                                CountryCode = 208
	Denmark CountryCode = 208
	// Djibouti                               CountryCode = 262
	Djibouti CountryCode = 262
	// Dominica                               CountryCode = 212
	Dominica CountryCode = 212
	// DominicanRepublic                      CountryCode = 214
	DominicanRepublic CountryCode = 214
	// Ecuador                                CountryCode = 218
	Ecuador CountryCode = 218
	// Egypt                                  CountryCode = 818
	Egypt CountryCode = 818
	// ElSalvador                             CountryCode = 222
	ElSalvador CountryCode = 222
	// EquatorialGuinea                       CountryCode = 226
	EquatorialGuinea CountryCode = 226
	// Eritrea                                CountryCode = 232
	Eritrea CountryCode = 232
	// Estonia                                CountryCode = 233
	Estonia CountryCode = 233
	// Ethiopia                               CountryCode = 231
	Ethiopia CountryCode = 231
	// FaroeIslands                           CountryCode = 234
	FaroeIslands CountryCode = 234
	// FalklandIslands                        CountryCode = 238
	FalklandIslands CountryCode = 238
	// Fiji                                   CountryCode = 242
	Fiji CountryCode = 242
	// Finland                                CountryCode = 246
	Finland CountryCode = 246
	// France                                 CountryCode = 250
	France CountryCode = 250
	// FrenchGuiana                           CountryCode = 254
	FrenchGuiana CountryCode = 254
	// FrenchPolynesia                        CountryCode = 258
	FrenchPolynesia CountryCode = 258
	// FrenchSouthernTerritories              CountryCode = 260
	FrenchSouthernTerritories CountryCode = 260
	// Gabon                                  CountryCode = 266
	Gabon CountryCode = 266
	// Gambia                                 CountryCode = 270
	Gambia CountryCode = 270
	// Georgia                                CountryCode = 268
	Georgia CountryCode = 268
	// Germany                                CountryCode = 276
	Germany CountryCode = 276
	// Ghana                                  CountryCode = 288
	Ghana CountryCode = 288
	// Gibraltar                              CountryCode = 292
	Gibraltar CountryCode = 292
	// Greece                                 CountryCode = 300
	Greece CountryCode = 300
	// Greenland                              CountryCode = 304
	Greenland CountryCode = 304
	// Grenada                                CountryCode = 308
	Grenada CountryCode = 308
	// Guadeloupe                             CountryCode = 312
	Guadeloupe CountryCode = 312
	// Guam                                   CountryCode = 316
	Guam CountryCode = 316
	// Guatemala                              CountryCode = 320
	Guatemala CountryCode = 320
	// Guinea                                 CountryCode = 324
	Guinea CountryCode = 324
	// GuineaBissau                           CountryCode = 624
	GuineaBissau CountryCode = 624
	// Guyana                                 CountryCode = 328
	Guyana CountryCode = 328
	// Haiti                                  CountryCode = 332
	Haiti CountryCode = 332
	// HeardIslandandMcDonaldIslands          CountryCode = 334
	HeardIslandandMcDonaldIslands CountryCode = 334
	// Honduras                               CountryCode = 340
	Honduras CountryCode = 340
	// HongKong                               CountryCode = 344
	HongKong CountryCode = 344
	// Hungary                                CountryCode = 348
	Hungary CountryCode = 348
	// Iceland                                CountryCode = 352
	Iceland CountryCode = 352
	// India                                  CountryCode = 356
	India CountryCode = 356
	// Indonesia                              CountryCode = 360
	Indonesia CountryCode = 360
	// Iran                                   CountryCode = 364
	Iran CountryCode = 364
	// Iraq                                   CountryCode = 368
	Iraq CountryCode = 368
	// Ireland                                CountryCode = 372
	Ireland CountryCode = 372
	// IsleOfMan                              CountryCode = 833
	IsleOfMan CountryCode = 833
	// Israel                                 CountryCode = 376
	Israel CountryCode = 376
	// Italy                                  CountryCode = 380
	Italy CountryCode = 380
	// Jamaica                                CountryCode = 388
	Jamaica CountryCode = 388
	// Japan                                  CountryCode = 392
	Japan CountryCode = 392
	// Jordan                                 CountryCode = 400
	Jordan CountryCode = 400
	// Kazakhstan                             CountryCode = 398
	Kazakhstan CountryCode = 398
	// Kenya                                  CountryCode = 404
	Kenya CountryCode = 404
	// Kiribati                               CountryCode = 296
	Kiribati CountryCode = 296
	// Korea                                  CountryCode = 410
	Korea CountryCode = 410
	// KoreaNorth                             CountryCode = 408
	KoreaNorth CountryCode = 408
	// Kuwait                                 CountryCode = 414
	Kuwait CountryCode = 414
	// Kyrgyzstan                             CountryCode = 417
	Kyrgyzstan CountryCode = 417
	// Laos                                   CountryCode = 418
	Laos CountryCode = 418
	// Latvia                                 CountryCode = 428
	Latvia CountryCode = 428
	// Lebanon                                CountryCode = 422
	Lebanon CountryCode = 422
	// Lesotho                                CountryCode = 426
	Lesotho CountryCode = 426
	// Liberia                                CountryCode = 430
	Liberia CountryCode = 430
	// Libya                                  CountryCode = 434
	Libya CountryCode = 434
	// Liechtenstein                          CountryCode = 438
	Liechtenstein CountryCode = 438
	// Lithuania                              CountryCode = 440
	Lithuania CountryCode = 440
	// Luxembourg                             CountryCode = 442
	Luxembourg CountryCode = 442
	// Macau                                  CountryCode = 446
	Macau CountryCode = 446
	// Macao                                  CountryCode = 446
	Macao CountryCode = 446
	// Macedonia                              CountryCode = 807
	Macedonia CountryCode = 807
	// Madagascar                             CountryCode = 450
	Madagascar CountryCode = 450
	// Malawi                                 CountryCode = 454
	Malawi CountryCode = 454
	// Malaysia                               CountryCode = 458
	Malaysia CountryCode = 458
	// Maldives                               CountryCode = 462
	Maldives CountryCode = 462
	// Mali                                   CountryCode = 466
	Mali CountryCode = 466
	// Malta                                  CountryCode = 470
	Malta CountryCode = 470
	// MarshallIslands                        CountryCode = 584
	MarshallIslands CountryCode = 584
	// Martinique                             CountryCode = 474
	Martinique CountryCode = 474
	// Mauritania                             CountryCode = 478
	Mauritania CountryCode = 478
	// Mauritius                              CountryCode = 480
	Mauritius CountryCode = 480
	// Mayotte                                CountryCode = 175
	Mayotte CountryCode = 175
	// Mexico                                 CountryCode = 484
	Mexico CountryCode = 484
	// Micronesia                             CountryCode = 583
	Micronesia CountryCode = 583
	// Moldova                                CountryCode = 498
	Moldova CountryCode = 498
	// Monaco                                 CountryCode = 492
	Monaco CountryCode = 492
	// Mongolia                               CountryCode = 496
	Mongolia CountryCode = 496
	// Montserrat                             CountryCode = 500
	Montserrat CountryCode = 500
	// Morocco                                CountryCode = 504
	Morocco CountryCode = 504
	// Mozambique                             CountryCode = 508
	Mozambique CountryCode = 508
	// Myanmar                                CountryCode = 104
	Myanmar CountryCode = 104
	// Namibia                                CountryCode = 516
	Namibia CountryCode = 516
	// Nauru                                  CountryCode = 520
	Nauru CountryCode = 520
	// Nepal                                  CountryCode = 524
	Nepal CountryCode = 524
	// Netherlands                            CountryCode = 528
	Netherlands CountryCode = 528
	// NetherlandsAntilles                    CountryCode = 530
	NetherlandsAntilles CountryCode = 530
	// NewCaledonia                           CountryCode = 540
	NewCaledonia CountryCode = 540
	// NewZealand                             CountryCode = 554
	NewZealand CountryCode = 554
	// Nicaragua                              CountryCode = 558
	Nicaragua CountryCode = 558
	// Niger                                  CountryCode = 562
	Niger CountryCode = 562
	// Nigeria                                CountryCode = 566
	Nigeria CountryCode = 566
	// Niue                                   CountryCode = 570
	Niue CountryCode = 570
	// NorfolkIsland                          CountryCode = 574
	NorfolkIsland CountryCode = 574
	// NorthernMarianaIslands                 CountryCode = 580
	NorthernMarianaIslands CountryCode = 580
	// Norway                                 CountryCode = 578
	Norway CountryCode = 578
	// Oman                                   CountryCode = 512
	Oman CountryCode = 512
	// Pakistan                               CountryCode = 586
	Pakistan CountryCode = 586
	// Palau                                  CountryCode = 585
	Palau CountryCode = 585
	// Palestine                              CountryCode = 275
	Palestine CountryCode = 275
	// Panama                                 CountryCode = 591
	Panama CountryCode = 591
	// PapuaNewGuinea                         CountryCode = 598
	PapuaNewGuinea CountryCode = 598
	// Paraguay                               CountryCode = 600
	Paraguay CountryCode = 600
	// Peru                                   CountryCode = 604
	Peru CountryCode = 604
	// Philippines                            CountryCode = 608
	Philippines CountryCode = 608
	// Pitcairn                               CountryCode = 612
	Pitcairn CountryCode = 612
	// Poland                                 CountryCode = 616
	Poland CountryCode = 616
	// Portugal                               CountryCode = 620
	Portugal CountryCode = 620
	// PuertoRico                             CountryCode = 630
	PuertoRico CountryCode = 630
	// Qatar                                  CountryCode = 634
	Qatar CountryCode = 634
	// Reunion                                CountryCode = 638
	Reunion CountryCode = 638
	// Romania                                CountryCode = 642
	Romania CountryCode = 642
	// Russia                                 CountryCode = 643
	Russia CountryCode = 643
	// Rwanda                                 CountryCode = 646
	Rwanda CountryCode = 646
	// SaintHelena                            CountryCode = 654
	SaintHelena CountryCode = 654
	// SaintKittsAndNevis                     CountryCode = 659
	SaintKittsAndNevis CountryCode = 659
	// SaintLucia                             CountryCode = 662
	SaintLucia CountryCode = 662
	// SaintPierreAndMiquelon                 CountryCode = 666
	SaintPierreAndMiquelon CountryCode = 666
	// SaintVincentAndTheGrenadines           CountryCode = 670
	SaintVincentAndTheGrenadines CountryCode = 670
	// Samoa                                  CountryCode = 882
	Samoa CountryCode = 882
	// SanMarino                              CountryCode = 674
	SanMarino CountryCode = 674
	// SaoTomeAndPrincipe                     CountryCode = 678
	SaoTomeAndPrincipe CountryCode = 678
	// SaudiArabia                            CountryCode = 682
	SaudiArabia CountryCode = 682
	// Senegal                                CountryCode = 686
	Senegal CountryCode = 686
	// Seychelles                             CountryCode = 690
	Seychelles CountryCode = 690
	// SierraLeone                            CountryCode = 694
	SierraLeone CountryCode = 694
	// Singapore                              CountryCode = 702
	Singapore CountryCode = 702
	// Slovakia                               CountryCode = 703
	Slovakia CountryCode = 703
	// Slovenia                               CountryCode = 705
	Slovenia CountryCode = 705
	// SolomonIslands                         CountryCode = 90
	SolomonIslands CountryCode = 90
	// Somalia                                CountryCode = 706
	Somalia CountryCode = 706
	// SouthAfrica                            CountryCode = 710
	SouthAfrica CountryCode = 710
	// UAR                                    CountryCode = 710
	UAR CountryCode = 710
	// SouthGeorgiaAndTheSouthSandwichIslands CountryCode = 239
	SouthGeorgiaAndTheSouthSandwichIslands CountryCode = 239
	// Spain                                  CountryCode = 724
	Spain CountryCode = 724
	// SriLanka                               CountryCode = 144
	SriLanka CountryCode = 144
	// Sudan                                  CountryCode = 736
	Sudan CountryCode = 736
	// Suriname                               CountryCode = 740
	Suriname CountryCode = 740
	// SvalbardAndJanMayenIslands             CountryCode = 744
	SvalbardAndJanMayenIslands CountryCode = 744
	// Swaziland                              CountryCode = 748
	Swaziland CountryCode = 748
	// Sweden                                 CountryCode = 752
	Sweden CountryCode = 752
	// Scotland                               CountryCode = 826
	Scotland CountryCode = 826
	// Switzerland                            CountryCode = 756
	Switzerland CountryCode = 756
	// Syria                                  CountryCode = 760
	Syria CountryCode = 760
	// Taiwan                                 CountryCode = 158
	Taiwan CountryCode = 158
	// Tajikistan                             CountryCode = 762
	Tajikistan CountryCode = 762
	// Tanzania                               CountryCode = 834
	Tanzania CountryCode = 834
	// Thailand                               CountryCode = 764
	Thailand CountryCode = 764
	// TimorLeste                             CountryCode = 626
	TimorLeste CountryCode = 626
	// Togo                                   CountryCode = 768
	Togo CountryCode = 768
	// Tokelau                                CountryCode = 772
	Tokelau CountryCode = 772
	// Tonga                                  CountryCode = 776
	Tonga CountryCode = 776
	// TrinidadAndTobago                      CountryCode = 780
	TrinidadAndTobago CountryCode = 780
	// Tunisia                                CountryCode = 788
	Tunisia CountryCode = 788
	// Turkey                                 CountryCode = 792
	Turkey CountryCode = 792
	// Turkmenistan                           CountryCode = 795
	Turkmenistan CountryCode = 795
	// TurksAndCaicosIslands                  CountryCode = 796
	TurksAndCaicosIslands CountryCode = 796
	// Tuvalu                                 CountryCode = 798
	Tuvalu CountryCode = 798
	// Uganda                                 CountryCode = 800
	Uganda CountryCode = 800
	// Ukraine                                CountryCode = 804
	Ukraine CountryCode = 804
	// UnitedArabEmirates                     CountryCode = 784
	UnitedArabEmirates CountryCode = 784
	// UnitedKingdom                          CountryCode = 826
	UnitedKingdom CountryCode = 826
	// UnitedStatesOfAmerica                  CountryCode = 840
	UnitedStatesOfAmerica CountryCode = 840
	// UnitedStatesMinorOutlyingIslands       CountryCode = 581
	UnitedStatesMinorOutlyingIslands CountryCode = 581
	// Uruguay                                CountryCode = 858
	Uruguay CountryCode = 858
	// Wales                                  CountryCode = 826
	Wales CountryCode = 826
	// Uzbekistan                             CountryCode = 860
	Uzbekistan CountryCode = 860
	// Vanuatu                                CountryCode = 548
	Vanuatu CountryCode = 548
	// HolySee                                CountryCode = 336
	HolySee CountryCode = 336
	// Venezuela                              CountryCode = 862
	Venezuela CountryCode = 862
	// Vietnam                                CountryCode = 704
	Vietnam CountryCode = 704
	// VirginIslandsBritish                   CountryCode = 92
	VirginIslandsBritish CountryCode = 92
	// VirginIslandsUS                        CountryCode = 850
	VirginIslandsUS CountryCode = 850
	// WallisandFutunaIslands                 CountryCode = 876
	WallisandFutunaIslands CountryCode = 876
	// WesternSahara                          CountryCode = 732
	WesternSahara CountryCode = 732
	// Yemen                                  CountryCode = 887
	Yemen CountryCode = 887
	// Yugoslavia                             CountryCode = 891
	Yugoslavia CountryCode = 891
	// Zambia                                 CountryCode = 894
	Zambia CountryCode = 894
	// Zimbabwe                               CountryCode = 716
	Zimbabwe CountryCode = 716
	// Afghanistan                            CountryCode = 4
	Afghanistan CountryCode = 4
	// Serbia                                 CountryCode = 688
	Serbia CountryCode = 688
	// AlandIslands                           CountryCode = 248
	AlandIslands CountryCode = 248
	// Bonaire                                CountryCode = 535
	Bonaire CountryCode = 535
	// Guernsey                               CountryCode = 831
	Guernsey CountryCode = 831
	// Jersey                                 CountryCode = 832
	Jersey CountryCode = 832
	// Curacao                                CountryCode = 531
	Curacao CountryCode = 531
	// SaintBarthelemy                        CountryCode = 652
	SaintBarthelemy CountryCode = 652
	// SaintMartinFrench                      CountryCode = 663
	SaintMartinFrench CountryCode = 663
	// SintMaartenDutch                       CountryCode = 534
	SintMaartenDutch CountryCode = 534
	// Montenegro                             CountryCode = 499
	Montenegro CountryCode = 499
	// SouthSudan                             CountryCode = 728
	SouthSudan CountryCode = 728
	// Kosovo                                 CountryCode = 900
	Kosovo CountryCode = 900
	// None									  CountryCode = 998
	None CountryCode = 998
)

Digit ISO 3166-1. Three codes present, for example Russia == RU == RUS == 643.

const (
	// NonCountryInternationalFreephone                               CountryCode = 999800
	NonCountryInternationalFreephone CountryCode = 999800 // for callcode +800, International Freephone (UIFN)
	// NonCountryInmarsat                                             CountryCode = 999870
	NonCountryInmarsat CountryCode = 999870 // for callcode +870, Inmarsat "SNAC" service
	// NonCountryMaritimeMobileService                                CountryCode = 999875
	NonCountryMaritimeMobileService CountryCode = 999875 // for callcodes +875, +876, +877
	// NonCountryUniversalPersonalTelecommunicationsServices          CountryCode = 999878
	NonCountryUniversalPersonalTelecommunicationsServices CountryCode = 999878 // for callcode +878
	// NonCountryNationalNonCommercialPurposes                        CountryCode = 999879
	NonCountryNationalNonCommercialPurposes CountryCode = 999879 // for callcode +879
	// NonCountryGlobalMobileSatelliteSystem                          CountryCode = 999881
	NonCountryGlobalMobileSatelliteSystem CountryCode = 999881 // for callcode +881
	// NonCountryInternationalNetworks                                CountryCode = 999882
	NonCountryInternationalNetworks CountryCode = 999882 // for callcodes +882, +883
	// NonCountryDisasterRelief                                       CountryCode = 999888
	NonCountryDisasterRelief CountryCode = 999888 // for callcode +888
	// NonCountryInternationalPremiumRateService                      CountryCode = 999979
	NonCountryInternationalPremiumRateService CountryCode = 999979 // for callcode +979
	// NonCountryInternationalTelecommunicationsCorrespondenceService CountryCode = 999991
	NonCountryInternationalTelecommunicationsCorrespondenceService CountryCode = 999991 // for callcode +991
)

Non-countries codes

const (
	// AL CountryCode = 8
	AL CountryCode = 8
	// DZ CountryCode = 12
	DZ CountryCode = 12
	// AS CountryCode = 16
	AS CountryCode = 16
	AD CountryCode = 20
	// AO CountryCode = 24
	AO CountryCode = 24
	// AI CountryCode = 660
	AI CountryCode = 660
	// AQ CountryCode = 10
	AQ CountryCode = 10
	// AG CountryCode = 28
	AG CountryCode = 28
	// AR CountryCode = 32
	AR CountryCode = 32
	// AM CountryCode = 51
	AM CountryCode = 51
	// AW CountryCode = 533
	AW CountryCode = 533
	// AU CountryCode = 36
	AU CountryCode = 36
	// AT CountryCode = 40
	AT CountryCode = 40
	// AZ CountryCode = 31
	AZ CountryCode = 31
	// BS CountryCode = 44
	BS CountryCode = 44
	// BH CountryCode = 48
	BH CountryCode = 48
	// BD CountryCode = 50
	BD CountryCode = 50
	// BB CountryCode = 52
	BB CountryCode = 52
	// BY CountryCode = 112
	BY CountryCode = 112
	// BE CountryCode = 56
	BE CountryCode = 56
	// BZ CountryCode = 84
	BZ CountryCode = 84
	// BJ CountryCode = 204
	BJ CountryCode = 204
	// BM CountryCode = 60
	BM CountryCode = 60
	// BT CountryCode = 64
	BT CountryCode = 64
	// BO CountryCode = 68
	BO CountryCode = 68
	// BA CountryCode = 70
	BA CountryCode = 70
	// BW CountryCode = 72
	BW CountryCode = 72
	// BV CountryCode = 74
	BV CountryCode = 74
	// BR CountryCode = 76
	BR CountryCode = 76
	// IO CountryCode = 86
	IO CountryCode = 86
	// BN CountryCode = 96
	BN CountryCode = 96
	// BG CountryCode = 100
	BG CountryCode = 100
	// BF CountryCode = 854
	BF CountryCode = 854
	// BI CountryCode = 108
	BI CountryCode = 108
	// KH CountryCode = 116
	KH CountryCode = 116
	// CM CountryCode = 120
	CM CountryCode = 120
	// CA CountryCode = 124
	CA CountryCode = 124
	// CV CountryCode = 132
	CV CountryCode = 132
	// KY CountryCode = 136
	KY CountryCode = 136
	// CF CountryCode = 140
	CF CountryCode = 140
	// TD CountryCode = 148
	TD CountryCode = 148
	// CL CountryCode = 152
	CL CountryCode = 152
	// CN CountryCode = 156
	CN CountryCode = 156
	// CX CountryCode = 162
	CX CountryCode = 162
	// CC CountryCode = 166
	CC CountryCode = 166
	// CO CountryCode = 170
	CO CountryCode = 170
	// KM CountryCode = 174
	KM CountryCode = 174
	// CG CountryCode = 178
	CG CountryCode = 178
	// CD CountryCode = 180
	CD CountryCode = 180
	// CK CountryCode = 184
	CK CountryCode = 184
	// CR CountryCode = 188
	CR CountryCode = 188
	// CI CountryCode = 384
	CI CountryCode = 384
	// HR CountryCode = 191
	HR CountryCode = 191
	// CU CountryCode = 192
	CU CountryCode = 192
	// CY CountryCode = 196
	CY CountryCode = 196
	// CZ CountryCode = 203
	CZ CountryCode = 203
	// DK CountryCode = 208
	DK CountryCode = 208
	// DJ CountryCode = 262
	DJ CountryCode = 262
	// DM CountryCode = 212
	DM CountryCode = 212
	// DO CountryCode = 214
	DO CountryCode = 214
	// EC CountryCode = 218
	EC CountryCode = 218
	// EG CountryCode = 818
	EG CountryCode = 818
	// SV CountryCode = 222
	SV CountryCode = 222
	// GQ CountryCode = 226
	GQ CountryCode = 226
	// ER CountryCode = 232
	ER CountryCode = 232
	// EE CountryCode = 233
	EE CountryCode = 233
	// ET CountryCode = 231
	ET CountryCode = 231
	// FO CountryCode = 234
	FO CountryCode = 234
	// FK CountryCode = 238
	FK CountryCode = 238
	// FJ CountryCode = 242
	FJ CountryCode = 242
	// FI CountryCode = 246
	FI CountryCode = 246
	// FR CountryCode = 250
	FR CountryCode = 250
	// GF CountryCode = 254
	GF CountryCode = 254
	// PF CountryCode = 258
	PF CountryCode = 258
	// TF CountryCode = 260
	TF CountryCode = 260
	// GA CountryCode = 266
	GA CountryCode = 266
	// GM CountryCode = 270
	GM CountryCode = 270
	// GE CountryCode = 268
	GE CountryCode = 268
	// DE CountryCode = 276
	DE CountryCode = 276
	// GH CountryCode = 288
	GH CountryCode = 288
	// GI CountryCode = 292
	GI CountryCode = 292
	// GR CountryCode = 300
	GR CountryCode = 300
	// GL CountryCode = 304
	GL CountryCode = 304
	// GD CountryCode = 308
	GD CountryCode = 308
	// GP CountryCode = 312
	GP CountryCode = 312
	// GU CountryCode = 316
	GU CountryCode = 316
	// GT CountryCode = 320
	GT CountryCode = 320
	// GN CountryCode = 324
	GN CountryCode = 324
	// GW CountryCode = 624
	GW CountryCode = 624
	// GY CountryCode = 328
	GY CountryCode = 328
	// HT CountryCode = 332
	HT CountryCode = 332
	// HM CountryCode = 334
	HM CountryCode = 334
	// HN CountryCode = 340
	HN CountryCode = 340
	// HK CountryCode = 344
	HK CountryCode = 344
	// HU CountryCode = 348
	HU CountryCode = 348
	// IS CountryCode = 352
	IS CountryCode = 352
	// IN CountryCode = 356
	IN CountryCode = 356
	// ID CountryCode = 360
	ID CountryCode = 360
	// IR CountryCode = 364
	IR CountryCode = 364
	// IQ CountryCode = 368
	IQ CountryCode = 368
	// IE CountryCode = 372
	IE CountryCode = 372
	// IL CountryCode = 376
	IL CountryCode = 376
	// IT CountryCode = 380
	IT CountryCode = 380
	// JM CountryCode = 388
	JM CountryCode = 388
	// JP CountryCode = 392
	JP CountryCode = 392
	// JO CountryCode = 400
	JO CountryCode = 400
	// KZ CountryCode = 398
	KZ CountryCode = 398
	// KE CountryCode = 404
	KE CountryCode = 404
	// KI CountryCode = 296
	KI CountryCode = 296
	// KR CountryCode = 410
	KR CountryCode = 410
	// KP CountryCode = 408
	KP CountryCode = 408
	// KW CountryCode = 414
	KW CountryCode = 414
	// KG CountryCode = 417
	KG CountryCode = 417
	// LA CountryCode = 418
	LA CountryCode = 418
	// LV CountryCode = 428
	LV CountryCode = 428
	// LB CountryCode = 422
	LB CountryCode = 422
	// LS CountryCode = 426
	LS CountryCode = 426
	// LR CountryCode = 430
	LR CountryCode = 430
	// LY CountryCode = 434
	LY CountryCode = 434
	// LI CountryCode = 438
	LI CountryCode = 438
	// LT CountryCode = 440
	LT CountryCode = 440
	// LU CountryCode = 442
	LU CountryCode = 442
	// MO CountryCode = 446
	MO CountryCode = 446
	// MK CountryCode = 807
	MK CountryCode = 807
	// MG CountryCode = 450
	MG CountryCode = 450
	// MW CountryCode = 454
	MW CountryCode = 454
	// MY CountryCode = 458
	MY CountryCode = 458
	// MV CountryCode = 462
	MV CountryCode = 462
	// ML CountryCode = 466
	ML CountryCode = 466
	// MT CountryCode = 470
	MT CountryCode = 470
	// MH CountryCode = 584
	MH CountryCode = 584
	// MQ CountryCode = 474
	MQ CountryCode = 474
	// MR CountryCode = 478
	MR CountryCode = 478
	// MU CountryCode = 480
	MU CountryCode = 480
	// YT CountryCode = 175
	YT CountryCode = 175
	// MX CountryCode = 484
	MX CountryCode = 484
	// FM CountryCode = 583
	FM CountryCode = 583
	// MD CountryCode = 498
	MD CountryCode = 498
	// MC CountryCode = 492
	MC CountryCode = 492
	// MN CountryCode = 496
	MN CountryCode = 496
	// MS CountryCode = 500
	MS CountryCode = 500
	// MA CountryCode = 504
	MA CountryCode = 504
	// MZ CountryCode = 508
	MZ CountryCode = 508
	// MM CountryCode = 104
	MM CountryCode = 104
	// NA CountryCode = 516
	NA CountryCode = 516
	// NR CountryCode = 520
	NR CountryCode = 520
	// NP CountryCode = 524
	NP CountryCode = 524
	// NL CountryCode = 528
	NL CountryCode = 528
	// AN CountryCode = 530
	AN CountryCode = 530
	// NC CountryCode = 540
	NC CountryCode = 540
	// NZ CountryCode = 554
	NZ CountryCode = 554
	// NI CountryCode = 558
	NI CountryCode = 558
	// NE CountryCode = 562
	NE CountryCode = 562
	// NG CountryCode = 566
	NG CountryCode = 566
	// NU CountryCode = 570
	NU CountryCode = 570
	// NF CountryCode = 574
	NF CountryCode = 574
	// MP CountryCode = 580
	MP CountryCode = 580
	// NO CountryCode = 578
	NO CountryCode = 578
	// OM CountryCode = 512
	OM CountryCode = 512
	// PK CountryCode = 586
	PK CountryCode = 586
	// PW CountryCode = 585
	PW CountryCode = 585
	// PS CountryCode = 275
	PS CountryCode = 275
	// PA CountryCode = 591
	PA CountryCode = 591
	// PG CountryCode = 598
	PG CountryCode = 598
	// PY CountryCode = 600
	PY CountryCode = 600
	// PE CountryCode = 604
	PE CountryCode = 604
	// PH CountryCode = 608
	PH CountryCode = 608
	// PN CountryCode = 612
	PN CountryCode = 612
	// PL CountryCode = 616
	PL CountryCode = 616
	// PT CountryCode = 620
	PT CountryCode = 620
	// PR CountryCode = 630
	PR CountryCode = 630
	// QA CountryCode = 634
	QA CountryCode = 634
	// RE CountryCode = 638
	RE CountryCode = 638
	// RO CountryCode = 642
	RO CountryCode = 642
	// RU CountryCode = 643
	RU CountryCode = 643
	// RW CountryCode = 646
	RW CountryCode = 646
	// SH CountryCode = 654
	SH CountryCode = 654
	// KN CountryCode = 659
	KN CountryCode = 659
	// LC CountryCode = 662
	LC CountryCode = 662
	// PM CountryCode = 666
	PM CountryCode = 666
	// VC CountryCode = 670
	VC CountryCode = 670
	// WS CountryCode = 882
	WS CountryCode = 882
	// SM CountryCode = 674
	SM CountryCode = 674
	// ST CountryCode = 678
	ST CountryCode = 678
	// SA CountryCode = 682
	SA CountryCode = 682
	// SN CountryCode = 686
	SN CountryCode = 686
	// SC CountryCode = 690
	SC CountryCode = 690
	// SL CountryCode = 694
	SL CountryCode = 694
	// SG CountryCode = 702
	SG CountryCode = 702
	// SK CountryCode = 703
	SK CountryCode = 703
	// SI CountryCode = 705
	SI CountryCode = 705
	// SB CountryCode = 90
	SB CountryCode = 90
	// SO CountryCode = 706
	SO CountryCode = 706
	// ZA CountryCode = 710
	ZA CountryCode = 710
	// GS CountryCode = 239
	GS CountryCode = 239
	// ES CountryCode = 724
	ES CountryCode = 724
	// LK CountryCode = 144
	LK CountryCode = 144
	// SD CountryCode = 736
	SD CountryCode = 736
	// SR CountryCode = 740
	SR CountryCode = 740
	// SJ CountryCode = 744
	SJ CountryCode = 744
	// SZ CountryCode = 748
	SZ CountryCode = 748
	// SE CountryCode = 752
	SE CountryCode = 752
	// XS CountryCode = 826
	XS CountryCode = 826
	// CH CountryCode = 756
	CH CountryCode = 756
	// SY CountryCode = 760
	SY CountryCode = 760
	// TW CountryCode = 158
	TW CountryCode = 158
	// TJ CountryCode = 762
	TJ CountryCode = 762
	// TZ CountryCode = 834
	TZ CountryCode = 834
	// TH CountryCode = 764
	TH CountryCode = 764
	// TL CountryCode = 626
	TL CountryCode = 626
	// TG CountryCode = 768
	TG CountryCode = 768
	// TK CountryCode = 772
	TK CountryCode = 772
	// TO CountryCode = 776
	TO CountryCode = 776
	// TT CountryCode = 780
	TT CountryCode = 780
	// TN CountryCode = 788
	TN CountryCode = 788
	// TR CountryCode = 792
	TR CountryCode = 792
	// TM CountryCode = 795
	TM CountryCode = 795
	// TC CountryCode = 796
	TC CountryCode = 796
	// TV CountryCode = 798
	TV CountryCode = 798
	// UG CountryCode = 800
	UG CountryCode = 800
	// UA CountryCode = 804
	UA CountryCode = 804
	// AE CountryCode = 784
	AE CountryCode = 784
	// GB CountryCode = 826
	GB CountryCode = 826
	// US CountryCode = 840
	US CountryCode = 840
	// UM CountryCode = 581
	UM CountryCode = 581
	// UY CountryCode = 858
	UY CountryCode = 858
	// UZ CountryCode = 860
	UZ CountryCode = 860
	// VU CountryCode = 548
	VU CountryCode = 548
	// VA CountryCode = 336
	VA CountryCode = 336
	// VE CountryCode = 862
	VE CountryCode = 862
	// VN CountryCode = 704
	VN CountryCode = 704
	// VG CountryCode = 92
	VG CountryCode = 92
	// VI CountryCode = 850
	VI CountryCode = 850
	// WF CountryCode = 876
	WF CountryCode = 876
	// EH CountryCode = 732
	EH CountryCode = 732
	// YE CountryCode = 887
	YE CountryCode = 887
	// YU CountryCode = 891
	YU CountryCode = 891
	// ZM CountryCode = 894
	ZM CountryCode = 894
	// ZW CountryCode = 716
	ZW CountryCode = 716
	// AF CountryCode = 4
	AF CountryCode = 4
	// RS CountryCode = 688
	RS CountryCode = 688
	// AX CountryCode = 248
	AX CountryCode = 248
	// BQ CountryCode = 535
	BQ CountryCode = 535
	// GG CountryCode = 831
	GG CountryCode = 831
	// JE CountryCode = 832
	JE CountryCode = 832
	// CW CountryCode = 531
	CW CountryCode = 531
	// IM CountryCode = 833
	IM CountryCode = 833
	// BL CountryCode = 652
	BL CountryCode = 652
	// MF CountryCode = 663
	MF CountryCode = 663
	// SX CountryCode = 534
	SX CountryCode = 534
	// ME CountryCode = 499
	ME CountryCode = 499
	// SS CountryCode = 728
	SS CountryCode = 728
	// XK CountryCode = 900
	XK CountryCode = 900
	// XX CountryCode = 998
	XX CountryCode = 998
)

Alpha-2 digit ISO 3166-1. Three codes present, for example Russia == RU == RUS == 643.

const (
	// ALB CountryCode = 8
	ALB CountryCode = 8
	// DZA CountryCode = 12
	DZA CountryCode = 12
	// ASM CountryCode = 16
	ASM CountryCode = 16
	// AND CountryCode = 20
	AND CountryCode = 20
	// AGO CountryCode = 24
	AGO CountryCode = 24
	// AIA CountryCode = 660
	AIA CountryCode = 660
	// ATA CountryCode = 10
	ATA CountryCode = 10
	// ATG CountryCode = 28
	ATG CountryCode = 28
	// ARG CountryCode = 32
	ARG CountryCode = 32
	// ARM CountryCode = 51
	ARM CountryCode = 51
	// ABW CountryCode = 533
	ABW CountryCode = 533
	// AUS CountryCode = 36
	AUS CountryCode = 36
	// AUT CountryCode = 40
	AUT CountryCode = 40
	// AZE CountryCode = 31
	AZE CountryCode = 31
	// BHS CountryCode = 44
	BHS CountryCode = 44
	// BHR CountryCode = 48
	BHR CountryCode = 48
	// BGD CountryCode = 50
	BGD CountryCode = 50
	// BRB CountryCode = 52
	BRB CountryCode = 52
	// BLR CountryCode = 112
	BLR CountryCode = 112
	// BEL CountryCode = 56
	BEL CountryCode = 56
	// BLZ CountryCode = 84
	BLZ CountryCode = 84
	// BEN CountryCode = 204
	BEN CountryCode = 204
	// BMU CountryCode = 60
	BMU CountryCode = 60
	// BTN CountryCode = 64
	BTN CountryCode = 64
	// BOL CountryCode = 68
	BOL CountryCode = 68
	// BIH CountryCode = 70
	BIH CountryCode = 70
	// BWA CountryCode = 72
	BWA CountryCode = 72
	// BVT CountryCode = 74
	BVT CountryCode = 74
	// BRA CountryCode = 76
	BRA CountryCode = 76
	// IOT CountryCode = 86
	IOT CountryCode = 86
	// BRN CountryCode = 96
	BRN CountryCode = 96
	// BGR CountryCode = 100
	BGR CountryCode = 100
	// BFA CountryCode = 854
	BFA CountryCode = 854
	// BDI CountryCode = 108
	BDI CountryCode = 108
	// KHM CountryCode = 116
	KHM CountryCode = 116
	// CMR CountryCode = 120
	CMR CountryCode = 120
	// CAN CountryCode = 124
	CAN CountryCode = 124
	// CPV CountryCode = 132
	CPV CountryCode = 132
	// CYM CountryCode = 136
	CYM CountryCode = 136
	// CAF CountryCode = 140
	CAF CountryCode = 140
	// TCD CountryCode = 148
	TCD CountryCode = 148
	// CHL CountryCode = 152
	CHL CountryCode = 152
	// CHN CountryCode = 156
	CHN CountryCode = 156
	// CXR CountryCode = 162
	CXR CountryCode = 162
	// CCK CountryCode = 166
	CCK CountryCode = 166
	// COL CountryCode = 170
	COL CountryCode = 170
	// COM CountryCode = 174
	COM CountryCode = 174
	// COG CountryCode = 178
	COG CountryCode = 178
	// COD CountryCode = 180
	COD CountryCode = 180
	// COK CountryCode = 184
	COK CountryCode = 184
	// CRI CountryCode = 188
	CRI CountryCode = 188
	// CIV CountryCode = 384
	CIV CountryCode = 384
	// HRV CountryCode = 191
	HRV CountryCode = 191
	// CUB CountryCode = 192
	CUB CountryCode = 192
	// CYP CountryCode = 196
	CYP CountryCode = 196
	// CZE CountryCode = 203
	CZE CountryCode = 203
	// DNK CountryCode = 208
	DNK CountryCode = 208
	// DJI CountryCode = 262
	DJI CountryCode = 262
	// DMA CountryCode = 212
	DMA CountryCode = 212
	// DOM CountryCode = 214
	DOM CountryCode = 214
	// ECU CountryCode = 218
	ECU CountryCode = 218
	// EGY CountryCode = 818
	EGY CountryCode = 818
	// SLV CountryCode = 222
	SLV CountryCode = 222
	// GNQ CountryCode = 226
	GNQ CountryCode = 226
	// ERI CountryCode = 232
	ERI CountryCode = 232
	// EST CountryCode = 233
	EST CountryCode = 233
	// ETH CountryCode = 231
	ETH CountryCode = 231
	// FRO CountryCode = 234
	FRO CountryCode = 234
	// FLK CountryCode = 238
	FLK CountryCode = 238
	// FJI CountryCode = 242
	FJI CountryCode = 242
	// FIN CountryCode = 246
	FIN CountryCode = 246
	// FRA CountryCode = 250
	FRA CountryCode = 250
	// GUF CountryCode = 254
	GUF CountryCode = 254
	// PYF CountryCode = 258
	PYF CountryCode = 258
	// ATF CountryCode = 260
	ATF CountryCode = 260
	// GAB CountryCode = 266
	GAB CountryCode = 266
	// GMB CountryCode = 270
	GMB CountryCode = 270
	// GEO CountryCode = 268
	GEO CountryCode = 268
	// DEU CountryCode = 276
	DEU CountryCode = 276
	// GHA CountryCode = 288
	GHA CountryCode = 288
	// GIB CountryCode = 292
	GIB CountryCode = 292
	// GRC CountryCode = 300
	GRC CountryCode = 300
	// GRL CountryCode = 304
	GRL CountryCode = 304
	// GRD CountryCode = 308
	GRD CountryCode = 308
	// GLP CountryCode = 312
	GLP CountryCode = 312
	// GUM CountryCode = 316
	GUM CountryCode = 316
	// GTM CountryCode = 320
	GTM CountryCode = 320
	// GIN CountryCode = 324
	GIN CountryCode = 324
	// GNB CountryCode = 624
	GNB CountryCode = 624
	// GUY CountryCode = 328
	GUY CountryCode = 328
	// HTI CountryCode = 332
	HTI CountryCode = 332
	// HMD CountryCode = 334
	HMD CountryCode = 334
	// HND CountryCode = 340
	HND CountryCode = 340
	// HKG CountryCode = 344
	HKG CountryCode = 344
	// HUN CountryCode = 348
	HUN CountryCode = 348
	// ISL CountryCode = 352
	ISL CountryCode = 352
	// IND CountryCode = 356
	IND CountryCode = 356
	// IDN CountryCode = 360
	IDN CountryCode = 360
	// IRN CountryCode = 364
	IRN CountryCode = 364
	// IRQ CountryCode = 368
	IRQ CountryCode = 368
	// IRL CountryCode = 372
	IRL CountryCode = 372
	// ISR CountryCode = 376
	ISR CountryCode = 376
	// ITA CountryCode = 380
	ITA CountryCode = 380
	// JAM CountryCode = 388
	JAM CountryCode = 388
	// JPN CountryCode = 392
	JPN CountryCode = 392
	// JOR CountryCode = 400
	JOR CountryCode = 400
	// KAZ CountryCode = 398
	KAZ CountryCode = 398
	// KEN CountryCode = 404
	KEN CountryCode = 404
	// KIR CountryCode = 296
	KIR CountryCode = 296
	// KOR CountryCode = 410
	KOR CountryCode = 410
	// PRK CountryCode = 408
	PRK CountryCode = 408
	// KWT CountryCode = 414
	KWT CountryCode = 414
	// KGZ CountryCode = 417
	KGZ CountryCode = 417
	// LAO CountryCode = 418
	LAO CountryCode = 418
	// LVA CountryCode = 428
	LVA CountryCode = 428
	// LBN CountryCode = 422
	LBN CountryCode = 422
	// LSO CountryCode = 426
	LSO CountryCode = 426
	// LBR CountryCode = 430
	LBR CountryCode = 430
	// LBY CountryCode = 434
	LBY CountryCode = 434
	// LIE CountryCode = 438
	LIE CountryCode = 438
	// LTU CountryCode = 440
	LTU CountryCode = 440
	// LUX CountryCode = 442
	LUX CountryCode = 442
	// MAC CountryCode = 446
	MAC CountryCode = 446
	// MKD CountryCode = 807
	MKD CountryCode = 807
	// MDG CountryCode = 450
	MDG CountryCode = 450
	// MWI CountryCode = 454
	MWI CountryCode = 454
	// MYS CountryCode = 458
	MYS CountryCode = 458
	// MDV CountryCode = 462
	MDV CountryCode = 462
	// MLI CountryCode = 466
	MLI CountryCode = 466
	// MLT CountryCode = 470
	MLT CountryCode = 470
	// MHL CountryCode = 584
	MHL CountryCode = 584
	// MTQ CountryCode = 474
	MTQ CountryCode = 474
	// MRT CountryCode = 478
	MRT CountryCode = 478
	// MUS CountryCode = 480
	MUS CountryCode = 480
	// MYT CountryCode = 175
	MYT CountryCode = 175
	// MEX CountryCode = 484
	MEX CountryCode = 484
	// FSM CountryCode = 583
	FSM CountryCode = 583
	// MDA CountryCode = 498
	MDA CountryCode = 498
	// MCO CountryCode = 492
	MCO CountryCode = 492
	// MNG CountryCode = 496
	MNG CountryCode = 496
	// MSR CountryCode = 500
	MSR CountryCode = 500
	// MAR CountryCode = 504
	MAR CountryCode = 504
	// MOZ CountryCode = 508
	MOZ CountryCode = 508
	// MMR CountryCode = 104
	MMR CountryCode = 104
	// NAM CountryCode = 516
	NAM CountryCode = 516
	// NRU CountryCode = 520
	NRU CountryCode = 520
	// NPL CountryCode = 524
	NPL CountryCode = 524
	// NLD CountryCode = 528
	NLD CountryCode = 528
	// ANT CountryCode = 530
	ANT CountryCode = 530
	// NCL CountryCode = 540
	NCL CountryCode = 540
	// NZL CountryCode = 554
	NZL CountryCode = 554
	// NIC CountryCode = 558
	NIC CountryCode = 558
	// NER CountryCode = 562
	NER CountryCode = 562
	// NGA CountryCode = 566
	NGA CountryCode = 566
	// NIU CountryCode = 570
	NIU CountryCode = 570
	// NFK CountryCode = 574
	NFK CountryCode = 574
	// MNP CountryCode = 580
	MNP CountryCode = 580
	// NOR CountryCode = 578
	NOR CountryCode = 578
	// OMN CountryCode = 512
	OMN CountryCode = 512
	// PAK CountryCode = 586
	PAK CountryCode = 586
	// PLW CountryCode = 585
	PLW CountryCode = 585
	// PSE CountryCode = 275
	PSE CountryCode = 275
	// PAN CountryCode = 591
	PAN CountryCode = 591
	// PNG CountryCode = 598
	PNG CountryCode = 598
	// PRY CountryCode = 600
	PRY CountryCode = 600
	// PER CountryCode = 604
	PER CountryCode = 604
	// PHL CountryCode = 608
	PHL CountryCode = 608
	// PCN CountryCode = 612
	PCN CountryCode = 612
	// POL CountryCode = 616
	POL CountryCode = 616
	// PRT CountryCode = 620
	PRT CountryCode = 620
	// PRI CountryCode = 630
	PRI CountryCode = 630
	// QAT CountryCode = 634
	QAT CountryCode = 634
	// REU CountryCode = 638
	REU CountryCode = 638
	// ROU CountryCode = 642
	ROU CountryCode = 642
	// RUS CountryCode = 643
	RUS CountryCode = 643
	// RWA CountryCode = 646
	RWA CountryCode = 646
	// SHN CountryCode = 654
	SHN CountryCode = 654
	// KNA CountryCode = 659
	KNA CountryCode = 659
	// LCA CountryCode = 662
	LCA CountryCode = 662
	// SPM CountryCode = 666
	SPM CountryCode = 666
	// VCT CountryCode = 670
	VCT CountryCode = 670
	// WSM CountryCode = 882
	WSM CountryCode = 882
	// SMR CountryCode = 674
	SMR CountryCode = 674
	// STP CountryCode = 678
	STP CountryCode = 678
	// SAU CountryCode = 682
	SAU CountryCode = 682
	// SEN CountryCode = 686
	SEN CountryCode = 686
	// SYC CountryCode = 690
	SYC CountryCode = 690
	// SLE CountryCode = 694
	SLE CountryCode = 694
	// SGP CountryCode = 702
	SGP CountryCode = 702
	// SVK CountryCode = 703
	SVK CountryCode = 703
	// SVN CountryCode = 705
	SVN CountryCode = 705
	// SLB CountryCode = 90
	SLB CountryCode = 90
	// SOM CountryCode = 706
	SOM CountryCode = 706
	// ZAF CountryCode = 710
	ZAF CountryCode = 710
	// SGS CountryCode = 239
	SGS CountryCode = 239
	// ESP CountryCode = 724
	ESP CountryCode = 724
	// LKA CountryCode = 144
	LKA CountryCode = 144
	// SDN CountryCode = 736
	SDN CountryCode = 736
	// SUR CountryCode = 740
	SUR CountryCode = 740
	// SJM CountryCode = 744
	SJM CountryCode = 744
	// SWZ CountryCode = 748
	SWZ CountryCode = 748
	// SWE CountryCode = 752
	SWE CountryCode = 752
	// XSC CountryCode = 826
	XSC CountryCode = 826
	// CHE CountryCode = 756
	CHE CountryCode = 756
	// SYR CountryCode = 760
	SYR CountryCode = 760
	// TWN CountryCode = 158
	TWN CountryCode = 158
	// TJK CountryCode = 762
	TJK CountryCode = 762
	// TZA CountryCode = 834
	TZA CountryCode = 834
	// THA CountryCode = 764
	THA CountryCode = 764
	// TLS CountryCode = 626
	TLS CountryCode = 626
	// TGO CountryCode = 768
	TGO CountryCode = 768
	// TKL CountryCode = 772
	TKL CountryCode = 772
	// TON CountryCode = 776
	TON CountryCode = 776
	// TTO CountryCode = 780
	TTO CountryCode = 780
	// TUN CountryCode = 788
	TUN CountryCode = 788
	// TUR CountryCode = 792
	TUR CountryCode = 792
	// TKM CountryCode = 795
	TKM CountryCode = 795
	// TCA CountryCode = 796
	TCA CountryCode = 796
	// TUV CountryCode = 798
	TUV CountryCode = 798
	// UGA CountryCode = 800
	UGA CountryCode = 800
	// UKR CountryCode = 804
	UKR CountryCode = 804
	// ARE CountryCode = 784
	ARE CountryCode = 784
	// GBR CountryCode = 826
	GBR CountryCode = 826
	// USA CountryCode = 840
	USA CountryCode = 840
	// UMI CountryCode = 581
	UMI CountryCode = 581
	// URY CountryCode = 858
	URY CountryCode = 858
	// XWA CountryCode = 826
	XWA CountryCode = 826
	// UZB CountryCode = 860
	UZB CountryCode = 860
	// VUT CountryCode = 548
	VUT CountryCode = 548
	// VAT CountryCode = 336
	VAT CountryCode = 336
	// VEN CountryCode = 862
	VEN CountryCode = 862
	// VNM CountryCode = 704
	VNM CountryCode = 704
	// VGB CountryCode = 92
	VGB CountryCode = 92
	// VIR CountryCode = 850
	VIR CountryCode = 850
	// WLF CountryCode = 876
	WLF CountryCode = 876
	// ESH CountryCode = 732
	ESH CountryCode = 732
	// YEM CountryCode = 887
	YEM CountryCode = 887
	// YUG CountryCode = 891
	YUG CountryCode = 891
	// ZMB CountryCode = 894
	ZMB CountryCode = 894
	// ZWE CountryCode = 716
	ZWE CountryCode = 716
	// AFG CountryCode = 4
	AFG CountryCode = 4
	// SRB CountryCode = 688
	SRB CountryCode = 688
	// BES CountryCode = 535
	BES CountryCode = 535
	// ALA CountryCode = 248
	ALA CountryCode = 248
	// JEY CountryCode = 832
	JEY CountryCode = 832
	// GGY CountryCode = 831
	GGY CountryCode = 831
	// CUW CountryCode = 531
	CUW CountryCode = 531
	// IMN CountryCode = 833
	IMN CountryCode = 833
	// BLM CountryCode = 652
	BLM CountryCode = 652
	// MAF CountryCode = 663
	MAF CountryCode = 663
	// SXM CountryCode = 534
	SXM CountryCode = 534
	// MNE CountryCode = 499
	MNE CountryCode = 499
	// SSD CountryCode = 728
	SSD CountryCode = 728
	// XKX CountryCode = 900
	XKX CountryCode = 900
	// NON CountryCode = 999
	NON CountryCode = 998
)

Alpha-3 digit ISO 3166-1. Three codes present, for example Russia == RU == RUS == 643.

func All

func All() []CountryCode

All - return all country codes

func AllNonCountries

func AllNonCountries() []CountryCode

AllNonCountries - return all non-country codes

func ByName

func ByName(name string) CountryCode

ByName - return CountryCode by country Alpha-2 / Alpha-3 / name, case-insensitive, example: rus := ByName("Ru") OR rus := ByName("russia"), returns countries.Unknown, if country name not found or not valid

func ByNumeric

func ByNumeric(numeric int) CountryCode

ByNumeric - return CountryCode by country Alpha-2 / Alpha-3 / numeric code, example: rus := ByNumeric(643), returns countries.Unknown, if country code not found or not valid

func (CountryCode) Alpha2

func (c CountryCode) Alpha2() string

Alpha2 - returns a default Alpha (Alpha-2/ISO2, 2 chars) code of country

func (CountryCode) Alpha3

func (c CountryCode) Alpha3() string

Alpha3 - returns a Alpha-3 (ISO3, 3 chars) code of country

func (CountryCode) CallCodes

func (c CountryCode) CallCodes() []CallCode

CallCodes - return calling code of country

func (CountryCode) Capital

func (c CountryCode) Capital() CapitalCode

Capital - return a capital of country

func (CountryCode) Currency

func (c CountryCode) Currency() CurrencyCode

Currency - returns a currency of the country

func (CountryCode) Domain

func (c CountryCode) Domain() DomainCode

Domain - return domain code of country

func (CountryCode) Emoji

func (c CountryCode) Emoji() string

Emoji - return a country Alpha-2 (ISO2) as Emoji flag (example "RU" as "🇷🇺")

func (CountryCode) Emoji3

func (c CountryCode) Emoji3() string

Emoji3 - return a country Alpha-3 (ISO3) as Emoji (example "RUS" as "🇷🇺🇸")

func (CountryCode) FIFA

func (c CountryCode) FIFA() string

FIFA - returns a FIFA (AFC, CAF, CONCACAF, CONMEBOL, OFC and UEFA) three-letter country code

func (CountryCode) IOC

func (c CountryCode) IOC() string

IOC - returns The International Olympic Committee (IOC) three-letter abbreviation country codes

func (CountryCode) Info

func (c CountryCode) Info() *Country

Info - return all info about country as Country struct

func (CountryCode) IsValid

func (c CountryCode) IsValid() bool

IsValid - returns true, if code is correct

func (CountryCode) Region

func (c CountryCode) Region() RegionCode

Region - return Region code ot the country

func (CountryCode) String

func (c CountryCode) String() string

String - implements fmt.Stringer, returns a english name of country

func (CountryCode) StringRus

func (c CountryCode) StringRus() string

StringRus - returns a russian name of country

func (CountryCode) Type

func (c CountryCode) Type() string

Type implements Typer interface.

type Currency

type Currency struct {
	NickelRounding bool
	Name           string
	Alpha          string
	Digits         int
	Code           CurrencyCode
	Countries      []CountryCode
}

Currency - all info about currency

func AllCurrenciesInfo

func AllCurrenciesInfo() []*Currency

AllCurrenciesInfo - return all currencies as []Currency

func (*Currency) Scan

func (currency *Currency) Scan(src interface{}) error

Scan implements database/sql.Scanner

func (*Currency) Type

func (currency *Currency) Type() string

Type implements Typer interface.

func (Currency) Value

func (currency Currency) Value() (Value, error)

Value implements database/sql/driver.Valuer

type CurrencyCode

type CurrencyCode int64 // int64 for database/sql/driver.Valuer compatibility

CurrencyCode - currency code of country

const (
	CurrencyUnknown                        CurrencyCode = 0
	CurrencyAfghani                        CurrencyCode = 971
	CurrencyLek                            CurrencyCode = 8
	CurrencyAlgerianDinar                  CurrencyCode = 12
	CurrencyUSDollar                       CurrencyCode = 840
	CurrencyEuro                           CurrencyCode = 978
	CurrencyKwanza                         CurrencyCode = 973
	CurrencyEastCaribbeanDollar            CurrencyCode = 951
	CurrencyArgentinePeso                  CurrencyCode = 32
	CurrencyArmenianDram                   CurrencyCode = 51
	CurrencyArubanFlorin                   CurrencyCode = 533
	CurrencyAustralianDollar               CurrencyCode = 36
	CurrencyAzerbaijanianManat             CurrencyCode = 944
	CurrencyBahamianDollar                 CurrencyCode = 44
	CurrencyBahrainiDinar                  CurrencyCode = 48
	CurrencyTaka                           CurrencyCode = 50
	CurrencyBarbadosDollar                 CurrencyCode = 52
	CurrencyBelarussianRuble               CurrencyCode = 974
	CurrencyBelizeDollar                   CurrencyCode = 84
	CurrencyCFAFrancBCEAO                  CurrencyCode = 952
	CurrencyBermudianDollar                CurrencyCode = 60
	CurrencyNgultrum                       CurrencyCode = 64
	CurrencyIndianRupee                    CurrencyCode = 356
	CurrencyBoliviano                      CurrencyCode = 68
	CurrencyConvertibleMark                CurrencyCode = 977
	CurrencyPula                           CurrencyCode = 72
	CurrencyNorwegianKrone                 CurrencyCode = 578
	CurrencyBrazilianReal                  CurrencyCode = 986
	CurrencyBruneiDollar                   CurrencyCode = 96
	CurrencyBulgarianLev                   CurrencyCode = 975
	CurrencyBurundiFranc                   CurrencyCode = 108
	CurrencyCaboVerdeEscudo                CurrencyCode = 132
	CurrencyRiel                           CurrencyCode = 116
	CurrencyCFAFrancBEAC                   CurrencyCode = 950
	CurrencyCanadianDollar                 CurrencyCode = 124
	CurrencyCaymanIslandsDollar            CurrencyCode = 136
	CurrencyUnidaddeFomento                CurrencyCode = 990
	CurrencyChileanPeso                    CurrencyCode = 152
	CurrencyYuanRenminbi                   CurrencyCode = 156
	CurrencyColombianPeso                  CurrencyCode = 170
	CurrencyUnidaddeValorReal              CurrencyCode = 970
	CurrencyComoroFranc                    CurrencyCode = 174
	CurrencyCongoleseFranc                 CurrencyCode = 976
	CurrencyNewZealandDollar               CurrencyCode = 554
	CurrencyCostaRicanColon                CurrencyCode = 188
	CurrencyKuna                           CurrencyCode = 191
	CurrencyPesoConvertible                CurrencyCode = 931
	CurrencyCubanPeso                      CurrencyCode = 192
	CurrencyNetherlandsAntilleanGuilder    CurrencyCode = 532
	CurrencyCzechKoruna                    CurrencyCode = 203
	CurrencyDanishKrone                    CurrencyCode = 208
	CurrencyDjiboutiFranc                  CurrencyCode = 262
	CurrencyDominicanPeso                  CurrencyCode = 214
	CurrencyEgyptianPound                  CurrencyCode = 818
	CurrencyElSalvadorColon                CurrencyCode = 222
	CurrencyNakfa                          CurrencyCode = 232
	CurrencyEthiopianBirr                  CurrencyCode = 230
	CurrencyFalklandIslandsPound           CurrencyCode = 238
	CurrencyFijiDollar                     CurrencyCode = 242
	CurrencyCFPFranc                       CurrencyCode = 953
	CurrencyDalasi                         CurrencyCode = 270
	CurrencyLari                           CurrencyCode = 981
	CurrencyGhanaCedi                      CurrencyCode = 936
	CurrencyGibraltarPound                 CurrencyCode = 292
	CurrencyQuetzal                        CurrencyCode = 320
	CurrencyPoundSterling                  CurrencyCode = 826
	CurrencyGuineaFranc                    CurrencyCode = 324
	CurrencyGuyanaDollar                   CurrencyCode = 328
	CurrencyGourde                         CurrencyCode = 332
	CurrencyLempira                        CurrencyCode = 340
	CurrencyHongKongDollar                 CurrencyCode = 344
	CurrencyForint                         CurrencyCode = 348
	CurrencyIcelandKrona                   CurrencyCode = 352
	CurrencyRupiah                         CurrencyCode = 360
	CurrencySDR                            CurrencyCode = 960
	CurrencyIranianRial                    CurrencyCode = 364
	CurrencyIraqiDinar                     CurrencyCode = 368
	CurrencyNewIsraeliSheqel               CurrencyCode = 376
	CurrencyJamaicanDollar                 CurrencyCode = 388
	CurrencyYen                            CurrencyCode = 392
	CurrencyJordanianDinar                 CurrencyCode = 400
	CurrencyTenge                          CurrencyCode = 398
	CurrencyKenyanShilling                 CurrencyCode = 404
	CurrencyNorthKoreanWon                 CurrencyCode = 408
	CurrencyWon                            CurrencyCode = 410
	CurrencyKuwaitiDinar                   CurrencyCode = 414
	CurrencySom                            CurrencyCode = 417
	CurrencyKip                            CurrencyCode = 418
	CurrencyLebanesePound                  CurrencyCode = 422
	CurrencyLoti                           CurrencyCode = 426
	CurrencyRand                           CurrencyCode = 710
	CurrencyLiberianDollar                 CurrencyCode = 430
	CurrencyLibyanDinar                    CurrencyCode = 434
	CurrencySwissFranc                     CurrencyCode = 756
	CurrencyPataca                         CurrencyCode = 446
	CurrencyDenar                          CurrencyCode = 807
	CurrencyMalagasyAriary                 CurrencyCode = 969
	CurrencyKwacha                         CurrencyCode = 454
	CurrencyMalaysianRinggit               CurrencyCode = 458
	CurrencyRufiyaa                        CurrencyCode = 462
	CurrencyOuguiya                        CurrencyCode = 929
	CurrencyMauritiusRupee                 CurrencyCode = 480
	CurrencyADBUnitofAccount               CurrencyCode = 965
	CurrencyMexicanPeso                    CurrencyCode = 484
	CurrencyMexicanUnidaddeInversion       CurrencyCode = 979
	CurrencyMexicanUDI                     CurrencyCode = 979
	CurrencyMoldovanLeu                    CurrencyCode = 498
	CurrencyTugrik                         CurrencyCode = 496
	CurrencyMoroccanDirham                 CurrencyCode = 504
	CurrencyMozambiqueMetical              CurrencyCode = 943
	CurrencyKyat                           CurrencyCode = 104
	CurrencyNamibiaDollar                  CurrencyCode = 516
	CurrencyNepaleseRupee                  CurrencyCode = 524
	CurrencyCordobaOro                     CurrencyCode = 558
	CurrencyNaira                          CurrencyCode = 566
	CurrencyRialOmani                      CurrencyCode = 512
	CurrencyPakistanRupee                  CurrencyCode = 586
	CurrencyBalboa                         CurrencyCode = 590
	CurrencyKina                           CurrencyCode = 598
	CurrencyGuarani                        CurrencyCode = 600
	CurrencyNuevoSol                       CurrencyCode = 604
	CurrencyPhilippinePeso                 CurrencyCode = 608
	CurrencyZloty                          CurrencyCode = 985
	CurrencyQatariRial                     CurrencyCode = 634
	CurrencyRomanianLeu                    CurrencyCode = 946
	CurrencyRussianRuble                   CurrencyCode = 643
	CurrencyRwandaFranc                    CurrencyCode = 646
	CurrencySaintHelenaPound               CurrencyCode = 654
	CurrencyTala                           CurrencyCode = 882
	CurrencyDobra                          CurrencyCode = 930
	CurrencySaudiRiyal                     CurrencyCode = 682
	CurrencySerbianDinar                   CurrencyCode = 941
	CurrencySeychellesRupee                CurrencyCode = 690
	CurrencyLeone                          CurrencyCode = 694
	CurrencySingaporeDollar                CurrencyCode = 702
	CurrencySucre                          CurrencyCode = 994
	CurrencySolomonIslandsDollar           CurrencyCode = 90
	CurrencySomaliShilling                 CurrencyCode = 706
	CurrencySouthSudanesePound             CurrencyCode = 728
	CurrencySriLankaRupee                  CurrencyCode = 144
	CurrencySudanesePound                  CurrencyCode = 938
	CurrencySurinamDollar                  CurrencyCode = 968
	CurrencyLilangeni                      CurrencyCode = 748
	CurrencySwedishKrona                   CurrencyCode = 752
	CurrencyWIREuro                        CurrencyCode = 947
	CurrencyWIRFranc                       CurrencyCode = 948
	CurrencySyrianPound                    CurrencyCode = 760
	CurrencyNewTaiwanDollar                CurrencyCode = 901
	CurrencySomoni                         CurrencyCode = 972
	CurrencyTanzanianShilling              CurrencyCode = 834
	CurrencyBaht                           CurrencyCode = 764
	CurrencyPaanga                         CurrencyCode = 776
	CurrencyTrinidadandTobagoDollar        CurrencyCode = 780
	CurrencyTunisianDinar                  CurrencyCode = 788
	CurrencyTurkishLira                    CurrencyCode = 949
	CurrencyTurkmenistanNewManat           CurrencyCode = 934
	CurrencyUgandaShilling                 CurrencyCode = 800
	CurrencyHryvnia                        CurrencyCode = 980
	CurrencyUAEDirham                      CurrencyCode = 784
	CurrencyUSDollarNextday                CurrencyCode = 997
	CurrencyUruguayPesoenUnidadesIndexadas CurrencyCode = 940
	CurrencyUruguayPUI                     CurrencyCode = 940
	CurrencyURUIURUI                       CurrencyCode = 940
	CurrencyPesoUruguayo                   CurrencyCode = 858
	CurrencyUzbekistanSum                  CurrencyCode = 860
	CurrencyVatu                           CurrencyCode = 548
	CurrencyBolivar                        CurrencyCode = 937
	CurrencyDong                           CurrencyCode = 704
	CurrencyYemeniRial                     CurrencyCode = 886
	CurrencyZambianKwacha                  CurrencyCode = 967
	CurrencyZimbabweDollar                 CurrencyCode = 932
	CurrencyYugoslavianDinar               CurrencyCode = 891
	CurrencyNone                           CurrencyCode = 998
)

Currencies. Two codes present, for example CurrencyUSDollar == CurrencyUSD == 840.

const (
	CurrencyAFN CurrencyCode = 971
	CurrencyALL CurrencyCode = 8
	CurrencyDZD CurrencyCode = 12
	CurrencyUSD CurrencyCode = 840
	CurrencyEUR CurrencyCode = 978
	CurrencyAOA CurrencyCode = 973
	CurrencyXCD CurrencyCode = 951
	CurrencyARS CurrencyCode = 32
	CurrencyAMD CurrencyCode = 51
	CurrencyAWG CurrencyCode = 533
	CurrencyAUD CurrencyCode = 36
	CurrencyAZN CurrencyCode = 944
	CurrencyBSD CurrencyCode = 44
	CurrencyBHD CurrencyCode = 48
	CurrencyBDT CurrencyCode = 50
	CurrencyBBD CurrencyCode = 52
	CurrencyBYR CurrencyCode = 974
	CurrencyBZD CurrencyCode = 84
	CurrencyXOF CurrencyCode = 952
	CurrencyBMD CurrencyCode = 60
	CurrencyBTN CurrencyCode = 64
	CurrencyINR CurrencyCode = 356
	CurrencyBOB CurrencyCode = 68
	CurrencyBAM CurrencyCode = 977
	CurrencyBWP CurrencyCode = 72
	CurrencyNOK CurrencyCode = 578
	CurrencyBRL CurrencyCode = 986
	CurrencyBND CurrencyCode = 96
	CurrencyBGN CurrencyCode = 975
	CurrencyBIF CurrencyCode = 108
	CurrencyCVE CurrencyCode = 132
	CurrencyKHR CurrencyCode = 116
	CurrencyXAF CurrencyCode = 950
	CurrencyCAD CurrencyCode = 124
	CurrencyKYD CurrencyCode = 136
	CurrencyCLF CurrencyCode = 990
	CurrencyCLP CurrencyCode = 152
	CurrencyCNY CurrencyCode = 156
	CurrencyCOP CurrencyCode = 170
	CurrencyCOU CurrencyCode = 970
	CurrencyKMF CurrencyCode = 174
	CurrencyCDF CurrencyCode = 976
	CurrencyNZD CurrencyCode = 554
	CurrencyCRC CurrencyCode = 188
	CurrencyHRK CurrencyCode = 191
	CurrencyCUC CurrencyCode = 931
	CurrencyCUP CurrencyCode = 192
	CurrencyANG CurrencyCode = 532
	CurrencyCZK CurrencyCode = 203
	CurrencyDKK CurrencyCode = 208
	CurrencyDJF CurrencyCode = 262
	CurrencyDOP CurrencyCode = 214
	CurrencyEGP CurrencyCode = 818
	CurrencySVC CurrencyCode = 222
	CurrencyERN CurrencyCode = 232
	CurrencyETB CurrencyCode = 230
	CurrencyFKP CurrencyCode = 238
	CurrencyFJD CurrencyCode = 242
	CurrencyXPF CurrencyCode = 953
	CurrencyGMD CurrencyCode = 270
	CurrencyGEL CurrencyCode = 981
	CurrencyGHS CurrencyCode = 936
	CurrencyGIP CurrencyCode = 292
	CurrencyGTQ CurrencyCode = 320
	CurrencyGBP CurrencyCode = 826
	CurrencyGNF CurrencyCode = 324
	CurrencyGYD CurrencyCode = 328
	CurrencyHTG CurrencyCode = 332
	CurrencyHNL CurrencyCode = 340
	CurrencyHKD CurrencyCode = 344
	CurrencyHUF CurrencyCode = 348
	CurrencyISK CurrencyCode = 352
	CurrencyIDR CurrencyCode = 360
	CurrencyXDR CurrencyCode = 960
	CurrencyIRR CurrencyCode = 364
	CurrencyIQD CurrencyCode = 368
	CurrencyILS CurrencyCode = 376
	CurrencyJMD CurrencyCode = 388
	CurrencyJPY CurrencyCode = 392
	CurrencyJOD CurrencyCode = 400
	CurrencyKZT CurrencyCode = 398
	CurrencyKES CurrencyCode = 404
	CurrencyKPW CurrencyCode = 408
	CurrencyKRW CurrencyCode = 410
	CurrencyKWD CurrencyCode = 414
	CurrencyKGS CurrencyCode = 417
	CurrencyLAK CurrencyCode = 418
	CurrencyLBP CurrencyCode = 422
	CurrencyLSL CurrencyCode = 426
	CurrencyZAR CurrencyCode = 710
	CurrencyLRD CurrencyCode = 430
	CurrencyLYD CurrencyCode = 434
	CurrencyCHF CurrencyCode = 756
	CurrencyMOP CurrencyCode = 446
	CurrencyMKD CurrencyCode = 807
	CurrencyMGA CurrencyCode = 969
	CurrencyMWK CurrencyCode = 454
	CurrencyMYR CurrencyCode = 458
	CurrencyMVR CurrencyCode = 462
	CurrencyMRU CurrencyCode = 929
	CurrencyMUR CurrencyCode = 480
	CurrencyXUA CurrencyCode = 965
	CurrencyMXN CurrencyCode = 484
	CurrencyMXV CurrencyCode = 979
	CurrencyMDL CurrencyCode = 498
	CurrencyMNT CurrencyCode = 496
	CurrencyMAD CurrencyCode = 504
	CurrencyMZN CurrencyCode = 943
	CurrencyMMK CurrencyCode = 104
	CurrencyNAD CurrencyCode = 516
	CurrencyNPR CurrencyCode = 524
	CurrencyNIO CurrencyCode = 558
	CurrencyNGN CurrencyCode = 566
	CurrencyOMR CurrencyCode = 512
	CurrencyPKR CurrencyCode = 586
	CurrencyPAB CurrencyCode = 590
	CurrencyPGK CurrencyCode = 598
	CurrencyPYG CurrencyCode = 600
	CurrencyPEN CurrencyCode = 604
	CurrencyPHP CurrencyCode = 608
	CurrencyPLN CurrencyCode = 985
	CurrencyQAR CurrencyCode = 634
	CurrencyRON CurrencyCode = 946
	CurrencyRUB CurrencyCode = 643
	CurrencyRWF CurrencyCode = 646
	CurrencySHP CurrencyCode = 654
	CurrencyWST CurrencyCode = 882
	CurrencySTN CurrencyCode = 930
	CurrencySAR CurrencyCode = 682
	CurrencyRSD CurrencyCode = 941
	CurrencySCR CurrencyCode = 690
	CurrencySLL CurrencyCode = 694
	CurrencySGD CurrencyCode = 702
	CurrencyXSU CurrencyCode = 994
	CurrencySBD CurrencyCode = 90
	CurrencySOS CurrencyCode = 706
	CurrencySSP CurrencyCode = 728
	CurrencyLKR CurrencyCode = 144
	CurrencySDG CurrencyCode = 938
	CurrencySRD CurrencyCode = 968
	CurrencySZL CurrencyCode = 748
	CurrencySEK CurrencyCode = 752
	CurrencyCHE CurrencyCode = 947
	CurrencyCHW CurrencyCode = 948
	CurrencySYP CurrencyCode = 760
	CurrencyTWD CurrencyCode = 901
	CurrencyTJS CurrencyCode = 972
	CurrencyTZS CurrencyCode = 834
	CurrencyTHB CurrencyCode = 764
	CurrencyTOP CurrencyCode = 776
	CurrencyTTD CurrencyCode = 780
	CurrencyTND CurrencyCode = 788
	CurrencyTRY CurrencyCode = 949
	CurrencyTMT CurrencyCode = 934
	CurrencyUGX CurrencyCode = 800
	CurrencyUAH CurrencyCode = 980
	CurrencyAED CurrencyCode = 784
	CurrencyUSN CurrencyCode = 997
	CurrencyUYI CurrencyCode = 940
	CurrencyUYU CurrencyCode = 858
	CurrencyUZS CurrencyCode = 860
	CurrencyVUV CurrencyCode = 548
	CurrencyVEF CurrencyCode = 937
	CurrencyVND CurrencyCode = 704
	CurrencyYER CurrencyCode = 886
	CurrencyZMW CurrencyCode = 967
	CurrencyZWL CurrencyCode = 932
	CurrencyYUD CurrencyCode = 891
	CurrencyNON CurrencyCode = 998
)

Currencies by ISO 4217. Two codes present, for example CurrencyUSDollar == CurrencyUSD == 840.

func AllCurrencies

func AllCurrencies() []CurrencyCode

AllCurrencies - return all currencies codes

func CurrencyCodeByName

func CurrencyCodeByName(name string) CurrencyCode

CurrencyCodeByName - return CurrencyCode by currencyCode Alpha name, case-insensitive, example: currencyUSD := CurrencyCodeByName("usd") OR currencyUSD := CurrencyCodeByName("USD")

func (CurrencyCode) Alpha

func (c CurrencyCode) Alpha() string

Alpha - returns a default ISO 3166-1 Alpha (3 chars) code of currency

func (CurrencyCode) Countries

func (c CurrencyCode) Countries() []CountryCode

Countries - returns a country codes of currency using

func (CurrencyCode) Digits

func (c CurrencyCode) Digits() int

Digits - returns a number of digits used for each currency

func (CurrencyCode) Emoji

func (c CurrencyCode) Emoji() string

Emoji - return a currency as Emoji (only for USD, EUR, JPY and GBP)

func (CurrencyCode) Info

func (c CurrencyCode) Info() *Currency

Info - return all info about currency as Currency struct

func (CurrencyCode) IsValid

func (c CurrencyCode) IsValid() bool

IsValid - returns true, if code is correct

func (CurrencyCode) NickelRounding

func (c CurrencyCode) NickelRounding() bool

NickelRounding - returns true, if the currency uses ‘nickel rounding’ in transactions

func (CurrencyCode) String

func (c CurrencyCode) String() string

String - implements fmt.Stringer, returns a english name of currency

func (CurrencyCode) Type

func (c CurrencyCode) Type() string

Type implements Typer interface

type Domain

type Domain struct {
	Name    string
	Code    DomainCode
	Country CountryCode
}

Domain - capital info

func AllDomainsInfo

func AllDomainsInfo() []*Domain

AllDomainsInfo - return all domains as []*Domain

func (*Domain) Scan

func (c *Domain) Scan(src interface{}) error

Scan implements database/sql.Scanner

func (Domain) Type

func (c Domain) Type() string

Type implements Typer interface

func (Domain) Value

func (c Domain) Value() (Value, error)

Value implements database/sql/driver.Valuer

type DomainCode

type DomainCode int64 // int64 for database/sql/driver.Valuer compatibility

DomainCode - domain code

const (
	DomainUnknown DomainCode = 0
	DomainArpa    DomainCode = DomainCode(International)
	DomainCom     DomainCode = DomainCode(International + 1)
	DomainOrg     DomainCode = DomainCode(International + 2)
	DomainNet     DomainCode = DomainCode(International + 3)
	DomainEdu     DomainCode = DomainCode(International + 4)
	DomainGov     DomainCode = DomainCode(International + 5)
	DomainMil     DomainCode = DomainCode(International + 6)
	DomainTest    DomainCode = DomainCode(International + 7)
	DomainBiz     DomainCode = DomainCode(International + 8)
	DomainInfo    DomainCode = DomainCode(International + 9)
	DomainName    DomainCode = DomainCode(International + 10)
	DomainAU      DomainCode = DomainCode(AU)
	DomainAT      DomainCode = DomainCode(AT)
	DomainAZ      DomainCode = DomainCode(AZ)
	DomainAL      DomainCode = DomainCode(AL)
	DomainDZ      DomainCode = DomainCode(DZ)
	DomainAS      DomainCode = DomainCode(AS)
	DomainAI      DomainCode = DomainCode(AI)
	DomainAO      DomainCode = DomainCode(AO)
	DomainAD      DomainCode = DomainCode(AD)
	DomainAQ      DomainCode = DomainCode(AQ)
	DomainAG      DomainCode = DomainCode(AG)
	DomainAN      DomainCode = DomainCode(AN)
	DomainAE      DomainCode = DomainCode(AE)
	DomainAR      DomainCode = DomainCode(AR)
	DomainAM      DomainCode = DomainCode(AM)
	DomainAW      DomainCode = DomainCode(AW)
	DomainAF      DomainCode = DomainCode(AF)
	DomainBS      DomainCode = DomainCode(BS)
	DomainBD      DomainCode = DomainCode(BD)
	DomainBB      DomainCode = DomainCode(BB)
	DomainBH      DomainCode = DomainCode(BH)
	DomainBY      DomainCode = DomainCode(BY)
	DomainBZ      DomainCode = DomainCode(BZ)
	DomainBE      DomainCode = DomainCode(BE)
	DomainBJ      DomainCode = DomainCode(BJ)
	DomainBM      DomainCode = DomainCode(BM)
	DomainBG      DomainCode = DomainCode(BG)
	DomainBO      DomainCode = DomainCode(BO)
	DomainBA      DomainCode = DomainCode(BA)
	DomainBW      DomainCode = DomainCode(BW)
	DomainBR      DomainCode = DomainCode(BR)
	DomainIO      DomainCode = DomainCode(IO)
	DomainBN      DomainCode = DomainCode(BN)
	DomainBF      DomainCode = DomainCode(BF)
	DomainBI      DomainCode = DomainCode(BI)
	DomainBT      DomainCode = DomainCode(BT)
	DomainVU      DomainCode = DomainCode(VU)
	DomainVA      DomainCode = DomainCode(VA)
	DomainGB      DomainCode = DomainCode(GB)
	DomainHU      DomainCode = DomainCode(HU)
	DomainVE      DomainCode = DomainCode(VE)
	DomainVG      DomainCode = DomainCode(VG)
	DomainVI      DomainCode = DomainCode(VI)
	DomainTL      DomainCode = DomainCode(TL)
	DomainVN      DomainCode = DomainCode(VN)
	DomainGA      DomainCode = DomainCode(GA)
	DomainHT      DomainCode = DomainCode(HT)
	DomainGY      DomainCode = DomainCode(GY)
	DomainGM      DomainCode = DomainCode(GM)
	DomainGH      DomainCode = DomainCode(GH)
	DomainGP      DomainCode = DomainCode(GP)
	DomainGT      DomainCode = DomainCode(GT)
	DomainGN      DomainCode = DomainCode(GN)
	DomainGW      DomainCode = DomainCode(GW)
	DomainDE      DomainCode = DomainCode(DE)
	DomainGI      DomainCode = DomainCode(GI)
	DomainHN      DomainCode = DomainCode(HN)
	DomainHK      DomainCode = DomainCode(HK)
	DomainGD      DomainCode = DomainCode(GD)
	DomainGL      DomainCode = DomainCode(GL)
	DomainGR      DomainCode = DomainCode(GR)
	DomainGE      DomainCode = DomainCode(GE)
	DomainGU      DomainCode = DomainCode(GU)
	DomainDK      DomainCode = DomainCode(DK)
	DomainCD      DomainCode = DomainCode(CD)
	DomainDJ      DomainCode = DomainCode(DJ)
	DomainDM      DomainCode = DomainCode(DM)
	DomainDO      DomainCode = DomainCode(DO)
	DomainEG      DomainCode = DomainCode(EG)
	DomainZM      DomainCode = DomainCode(ZM)
	DomainEH      DomainCode = DomainCode(EH)
	DomainZW      DomainCode = DomainCode(ZW)
	DomainIL      DomainCode = DomainCode(IL)
	DomainIN      DomainCode = DomainCode(IN)
	DomainID      DomainCode = DomainCode(ID)
	DomainJO      DomainCode = DomainCode(JO)
	DomainIQ      DomainCode = DomainCode(IQ)
	DomainIR      DomainCode = DomainCode(IR)
	DomainIE      DomainCode = DomainCode(IE)
	DomainIS      DomainCode = DomainCode(IS)
	DomainES      DomainCode = DomainCode(ES)
	DomainIT      DomainCode = DomainCode(IT)
	DomainYE      DomainCode = DomainCode(YE)
	DomainKZ      DomainCode = DomainCode(KZ)
	DomainKY      DomainCode = DomainCode(KY)
	DomainKH      DomainCode = DomainCode(KH)
	DomainCM      DomainCode = DomainCode(CM)
	DomainCA      DomainCode = DomainCode(CA)
	DomainQA      DomainCode = DomainCode(QA)
	DomainKE      DomainCode = DomainCode(KE)
	DomainCY      DomainCode = DomainCode(CY)
	DomainKI      DomainCode = DomainCode(KI)
	DomainCN      DomainCode = DomainCode(CN)
	DomainCC      DomainCode = DomainCode(CC)
	DomainCO      DomainCode = DomainCode(CO)
	DomainKM      DomainCode = DomainCode(KM)
	DomainCG      DomainCode = DomainCode(CG)
	DomainKP      DomainCode = DomainCode(KP)
	DomainKR      DomainCode = DomainCode(KR)
	DomainCR      DomainCode = DomainCode(CR)
	DomainCI      DomainCode = DomainCode(CI)
	DomainCU      DomainCode = DomainCode(CU)
	DomainKW      DomainCode = DomainCode(KW)
	DomainKG      DomainCode = DomainCode(KG)
	DomainLA      DomainCode = DomainCode(LA)
	DomainLV      DomainCode = DomainCode(LV)
	DomainLS      DomainCode = DomainCode(LS)
	DomainLR      DomainCode = DomainCode(LR)
	DomainLB      DomainCode = DomainCode(LB)
	DomainLY      DomainCode = DomainCode(LY)
	DomainLT      DomainCode = DomainCode(LT)
	DomainLI      DomainCode = DomainCode(LI)
	DomainLU      DomainCode = DomainCode(LU)
	DomainMU      DomainCode = DomainCode(MU)
	DomainMR      DomainCode = DomainCode(MR)
	DomainMG      DomainCode = DomainCode(MG)
	DomainYT      DomainCode = DomainCode(YT)
	DomainMO      DomainCode = DomainCode(MO)
	DomainMK      DomainCode = DomainCode(MK)
	DomainMW      DomainCode = DomainCode(MW)
	DomainMY      DomainCode = DomainCode(MY)
	DomainML      DomainCode = DomainCode(ML)
	DomainMV      DomainCode = DomainCode(MV)
	DomainMT      DomainCode = DomainCode(MT)
	DomainMP      DomainCode = DomainCode(MP)
	DomainMA      DomainCode = DomainCode(MA)
	DomainMQ      DomainCode = DomainCode(MQ)
	DomainMH      DomainCode = DomainCode(MH)
	DomainMX      DomainCode = DomainCode(MX)
	DomainFM      DomainCode = DomainCode(FM)
	DomainMZ      DomainCode = DomainCode(MZ)
	DomainMD      DomainCode = DomainCode(MD)
	DomainMC      DomainCode = DomainCode(MC)
	DomainMN      DomainCode = DomainCode(MN)
	DomainMS      DomainCode = DomainCode(MS)
	DomainMM      DomainCode = DomainCode(MM)
	DomainNA      DomainCode = DomainCode(NA)
	DomainNR      DomainCode = DomainCode(NR)
	DomainNP      DomainCode = DomainCode(NP)
	DomainNE      DomainCode = DomainCode(NE)
	DomainNG      DomainCode = DomainCode(NG)
	DomainNL      DomainCode = DomainCode(NL)
	DomainNI      DomainCode = DomainCode(NI)
	DomainNU      DomainCode = DomainCode(NU)
	DomainNZ      DomainCode = DomainCode(NZ)
	DomainNC      DomainCode = DomainCode(NC)
	DomainNO      DomainCode = DomainCode(NO)
	DomainOM      DomainCode = DomainCode(OM)
	DomainBV      DomainCode = DomainCode(BV)
	DomainIM      DomainCode = DomainCode(IM)
	DomainNF      DomainCode = DomainCode(NF)
	DomainPN      DomainCode = DomainCode(PN)
	DomainCX      DomainCode = DomainCode(CX)
	DomainSH      DomainCode = DomainCode(SH)
	DomainWF      DomainCode = DomainCode(WF)
	DomainHM      DomainCode = DomainCode(HM)
	DomainCV      DomainCode = DomainCode(CV)
	DomainCK      DomainCode = DomainCode(CK)
	DomainWS      DomainCode = DomainCode(WS)
	DomainSJ      DomainCode = DomainCode(SJ)
	DomainTC      DomainCode = DomainCode(TC)
	DomainUM      DomainCode = DomainCode(UM)
	DomainPK      DomainCode = DomainCode(PK)
	DomainPW      DomainCode = DomainCode(PW)
	DomainPS      DomainCode = DomainCode(PS)
	DomainPA      DomainCode = DomainCode(PA)
	DomainPG      DomainCode = DomainCode(PG)
	DomainPY      DomainCode = DomainCode(PY)
	DomainPE      DomainCode = DomainCode(PE)
	DomainPL      DomainCode = DomainCode(PL)
	DomainPT      DomainCode = DomainCode(PT)
	DomainPR      DomainCode = DomainCode(PR)
	DomainRE      DomainCode = DomainCode(RE)
	DomainRU      DomainCode = DomainCode(RU)
	DomainRW      DomainCode = DomainCode(RW)
	DomainRO      DomainCode = DomainCode(RO)
	DomainSV      DomainCode = DomainCode(SV)
	DomainSM      DomainCode = DomainCode(SM)
	DomainST      DomainCode = DomainCode(ST)
	DomainSA      DomainCode = DomainCode(SA)
	DomainSZ      DomainCode = DomainCode(SZ)
	DomainSC      DomainCode = DomainCode(SC)
	DomainSN      DomainCode = DomainCode(SN)
	DomainPM      DomainCode = DomainCode(PM)
	DomainVC      DomainCode = DomainCode(VC)
	DomainKN      DomainCode = DomainCode(KN)
	DomainLC      DomainCode = DomainCode(LC)
	DomainSG      DomainCode = DomainCode(SG)
	DomainSY      DomainCode = DomainCode(SY)
	DomainSK      DomainCode = DomainCode(SK)
	DomainSI      DomainCode = DomainCode(SI)
	DomainUS      DomainCode = DomainCode(US)
	DomainSB      DomainCode = DomainCode(SB)
	DomainSO      DomainCode = DomainCode(SO)
	DomainSD      DomainCode = DomainCode(SD)
	DomainSR      DomainCode = DomainCode(SR)
	DomainSL      DomainCode = DomainCode(SL)
	DomainTJ      DomainCode = DomainCode(TJ)
	DomainTW      DomainCode = DomainCode(TW)
	DomainTH      DomainCode = DomainCode(TH)
	DomainTZ      DomainCode = DomainCode(TZ)
	DomainTG      DomainCode = DomainCode(TG)
	DomainTK      DomainCode = DomainCode(TK)
	DomainTO      DomainCode = DomainCode(TO)
	DomainTT      DomainCode = DomainCode(TT)
	DomainTV      DomainCode = DomainCode(TV)
	DomainTN      DomainCode = DomainCode(TN)
	DomainTM      DomainCode = DomainCode(TM)
	DomainTR      DomainCode = DomainCode(TR)
	DomainUG      DomainCode = DomainCode(UG)
	DomainUZ      DomainCode = DomainCode(UZ)
	DomainUA      DomainCode = DomainCode(UA)
	DomainUY      DomainCode = DomainCode(UY)
	DomainFO      DomainCode = DomainCode(FO)
	DomainFJ      DomainCode = DomainCode(FJ)
	DomainPH      DomainCode = DomainCode(PH)
	DomainFI      DomainCode = DomainCode(FI)
	DomainFK      DomainCode = DomainCode(FK)
	DomainFR      DomainCode = DomainCode(FR)
	DomainGF      DomainCode = DomainCode(GF)
	DomainPF      DomainCode = DomainCode(PF)
	DomainTF      DomainCode = DomainCode(TF)
	DomainHR      DomainCode = DomainCode(HR)
	DomainCF      DomainCode = DomainCode(CF)
	DomainTD      DomainCode = DomainCode(TD)
	DomainCZ      DomainCode = DomainCode(CZ)
	DomainCL      DomainCode = DomainCode(CL)
	DomainCH      DomainCode = DomainCode(CH)
	DomainSE      DomainCode = DomainCode(SE)
	DomainXS      DomainCode = DomainCode(XS)
	DomainLK      DomainCode = DomainCode(LK)
	DomainEC      DomainCode = DomainCode(EC)
	DomainGQ      DomainCode = DomainCode(GQ)
	DomainER      DomainCode = DomainCode(ER)
	DomainEE      DomainCode = DomainCode(EE)
	DomainET      DomainCode = DomainCode(ET)
	DomainZA      DomainCode = DomainCode(ZA)
	DomainYU      DomainCode = DomainCode(YU)
	DomainGS      DomainCode = DomainCode(GS)
	DomainJM      DomainCode = DomainCode(JM)
	DomainME      DomainCode = DomainCode(ME)
	DomainBL      DomainCode = DomainCode(BL)
	DomainSX      DomainCode = DomainCode(SX)
	DomainRS      DomainCode = DomainCode(RS)
	DomainAX      DomainCode = DomainCode(AX)
	DomainBQ      DomainCode = DomainCode(BQ)
	DomainGG      DomainCode = DomainCode(GG)
	DomainJE      DomainCode = DomainCode(JE)
	DomainCW      DomainCode = DomainCode(CW)
	DomainMF      DomainCode = DomainCode(MF)
	DomainSS      DomainCode = DomainCode(SS)
	DomainJP      DomainCode = DomainCode(JP)
	DomainXX      DomainCode = DomainCode(XX)
)

Domains codes

func AllDomains

func AllDomains() []DomainCode

AllDomains - returns all domains codes

func DomainCodeByName

func DomainCodeByName(name string) DomainCode

DomainCodeByName - return DomainCode by name, case-insensitive, example: domainAE := DomainCodeByName(".ae") OR capitalAE := domainAE("ae")

func (DomainCode) Country

func (c DomainCode) Country() CountryCode

Country - returns a country of domain

func (DomainCode) Info

func (c DomainCode) Info() *Domain

Info - returns domain information as Domain

func (DomainCode) IsValid

func (c DomainCode) IsValid() bool

IsValid - returns true, if code is correct

func (DomainCode) String

func (c DomainCode) String() string

String - implements fmt.Stringer, returns a domain (internet ccTDL)

func (DomainCode) Type

func (c DomainCode) Type() string

Type implements Typer interface

type Region

type Region struct {
	Name string
	Code RegionCode
}

Region - all info about region

func AllRegionsInfo

func AllRegionsInfo() []*Region

AllRegionsInfo - return all regions as []*Region

func (*Region) Scan

func (r *Region) Scan(src interface{}) error

Scan implements database/sql.Scanner

func (*Region) Type

func (r *Region) Type() string

Type implements Typer interface

func (Region) Value

func (r Region) Value() (Value, error)

Value implements database/sql/driver.Valuer

type RegionCode

type RegionCode int64 // int64 for database/sql/driver.Valuer compatibility

RegionCode - Region code (UN M.49 code standart)

const (
	// RegionUnknown RegionCode = 0
	RegionUnknown RegionCode = 0
	// RegionAF      RegionCode = 2
	RegionAF RegionCode = 2
	// RegionNA      RegionCode = 3
	RegionNA RegionCode = 3
	// RegionSA      RegionCode = 5
	RegionSA RegionCode = 5
	// RegionOC      RegionCode = 9
	RegionOC RegionCode = 9
	// RegionAN      RegionCode = 998
	RegionAN RegionCode = RegionCode(AN)
	// RegionAS      RegionCode = 142
	RegionAS RegionCode = 142
	// RegionEU      RegionCode = 150
	RegionEU RegionCode = 150
	// RegionNone    RegionCode = RegionCode(None)
	RegionNone RegionCode = RegionCode(None)
)
const (
	// RegionAfrica       RegionCode = 2
	RegionAfrica RegionCode = 2
	// RegionNorthAmerica RegionCode = 3
	RegionNorthAmerica RegionCode = 3
	// RegionSouthAmerica RegionCode = 5
	RegionSouthAmerica RegionCode = 5
	// RegionOceania      RegionCode = 9
	RegionOceania RegionCode = 9
	// RegionAntarctica   RegionCode = 999
	RegionAntarctica RegionCode = 999
	// RegionAsia         RegionCode = 142
	RegionAsia RegionCode = 142
	// RegionEurope       RegionCode = 150
	RegionEurope RegionCode = 150
)

func AllRegions

func AllRegions() []RegionCode

AllRegions - returns all regions codes

func RegionCodeByName

func RegionCodeByName(name string) RegionCode

RegionCodeByName - return RegionCode by region name, case-insensitive, example: regionEU := RegionCodeByName("eu") OR regionEU := RegionCodeByName("europe")

func (RegionCode) Info

func (c RegionCode) Info() *Region

Info - return a RegionCode as Region info

func (RegionCode) IsValid

func (c RegionCode) IsValid() bool

IsValid - returns true, if code is correct

func (RegionCode) String

func (c RegionCode) String() string

String - implements fmt.Stringer, returns a Region name in english

func (RegionCode) StringRus

func (c RegionCode) StringRus() string

StringRus - returns a Region name in russian

func (RegionCode) Type

func (c RegionCode) Type() string

Type implements Typer interface

type Typer

type Typer interface {
	Type() string
}

Typer - typer interface, provide a name of type

type Value added in v1.3.2

type Value interface{}

Value - for database/sql/driver.Valuer compatibility Value is a value that drivers must be able to handle. It is either nil, a type handled by a database driver's NamedValueChecker interface, or an instance of one of these types:

int64
float64
bool
[]byte
string
time.Time

If the driver supports cursors, a returned Value may also implement the Rows interface in this package. This is used, for example, when a user selects a cursor such as "select cursor(select * from my_table) from dual". If the Rows from the select is closed, the cursor Rows will also be closed.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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