country

package
v2.0.20 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Overview

Package country provides lookups methods over ISO-3166 countries.

Constants have been generated with code generation ./generator.

The source of truth is https://www.iso.org/iso-3166-country-codes.html.

Lookups methods by alpha2 and alpha3 are case robust.

Author Mikalai Konan(mikalai.konan@icloud.com).

Index

Constants

This section is empty.

Variables

View Source
var (
	// Afghanistan represents 'Afghanistan' country
	Afghanistan = Country{
				// contains filtered or unexported fields
	}
	// Albania represents 'Albania' country
	Albania = Country{
			// contains filtered or unexported fields
	}
	// Algeria represents 'Algeria' country
	Algeria = Country{
			// contains filtered or unexported fields
	}
	// AmericanSamoa represents 'American Samoa' country
	AmericanSamoa = Country{
					// contains filtered or unexported fields
	}
	// Andorra represents 'Andorra' country
	Andorra = Country{
			// contains filtered or unexported fields
	}
	// Angola represents 'Angola' country
	Angola = Country{
			// contains filtered or unexported fields
	}
	// Anguilla represents 'Anguilla' country
	Anguilla = Country{
				// contains filtered or unexported fields
	}
	// Antarctica represents 'Antarctica' country
	Antarctica = Country{
				// contains filtered or unexported fields
	}
	// AntiguaAndBarbuda represents 'Antigua and Barbuda' country
	AntiguaAndBarbuda = Country{
						// contains filtered or unexported fields
	}
	// Argentina represents 'Argentina' country
	Argentina = Country{
				// contains filtered or unexported fields
	}
	// Armenia represents 'Armenia' country
	Armenia = Country{
			// contains filtered or unexported fields
	}
	// Aruba represents 'Aruba' country
	Aruba = Country{
			// contains filtered or unexported fields
	}
	// Australia represents 'Australia' country
	Australia = Country{
				// contains filtered or unexported fields
	}
	// Austria represents 'Austria' country
	Austria = Country{
			// contains filtered or unexported fields
	}
	// Azerbaijan represents 'Azerbaijan' country
	Azerbaijan = Country{
				// contains filtered or unexported fields
	}
	// Bahamas represents 'Bahamas (the)' country
	Bahamas = Country{
			// contains filtered or unexported fields
	}
	// Bahrain represents 'Bahrain' country
	Bahrain = Country{
			// contains filtered or unexported fields
	}
	// Bangladesh represents 'Bangladesh' country
	Bangladesh = Country{
				// contains filtered or unexported fields
	}
	// Barbados represents 'Barbados' country
	Barbados = Country{
				// contains filtered or unexported fields
	}
	// Belarus represents 'Belarus' country
	Belarus = Country{
			// contains filtered or unexported fields
	}
	// Belgium represents 'Belgium' country
	Belgium = Country{
			// contains filtered or unexported fields
	}
	// Belize represents 'Belize' country
	Belize = Country{
			// contains filtered or unexported fields
	}
	// Benin represents 'Benin' country
	Benin = Country{
			// contains filtered or unexported fields
	}
	// Bermuda represents 'Bermuda' country
	Bermuda = Country{
			// contains filtered or unexported fields
	}
	// Bhutan represents 'Bhutan' country
	Bhutan = Country{
			// contains filtered or unexported fields
	}
	// Bolivia represents 'Bolivia (Plurinational State of)' country
	Bolivia = Country{
			// contains filtered or unexported fields
	}
	// BonaireSintEustatiusAndSaba represents 'Bonaire, Sint Eustatius and Saba' country
	BonaireSintEustatiusAndSaba = Country{
								// contains filtered or unexported fields
	}
	// BosniaAndHerzegovina represents 'Bosnia and Herzegovina' country
	BosniaAndHerzegovina = Country{
							// contains filtered or unexported fields
	}
	// Botswana represents 'Botswana' country
	Botswana = Country{
				// contains filtered or unexported fields
	}
	// BouvetIsland represents 'Bouvet Island' country
	BouvetIsland = Country{
					// contains filtered or unexported fields
	}
	// Brazil represents 'Brazil' country
	Brazil = Country{
			// contains filtered or unexported fields
	}
	// BritishIndianOceanTerritory represents 'British Indian Ocean Territory (the)' country
	BritishIndianOceanTerritory = Country{
								// contains filtered or unexported fields
	}
	// BruneiDarussalam represents 'Brunei Darussalam' country
	BruneiDarussalam = Country{
						// contains filtered or unexported fields
	}
	// Bulgaria represents 'Bulgaria' country
	Bulgaria = Country{
				// contains filtered or unexported fields
	}
	// BurkinaFaso represents 'Burkina Faso' country
	BurkinaFaso = Country{
				// contains filtered or unexported fields
	}
	// Burundi represents 'Burundi' country
	Burundi = Country{
			// contains filtered or unexported fields
	}
	// CaboVerde represents 'Cabo Verde' country
	CaboVerde = Country{
				// contains filtered or unexported fields
	}
	// Cambodia represents 'Cambodia' country
	Cambodia = Country{
				// contains filtered or unexported fields
	}
	// Cameroon represents 'Cameroon' country
	Cameroon = Country{
				// contains filtered or unexported fields
	}
	// Canada represents 'Canada' country
	Canada = Country{
			// contains filtered or unexported fields
	}
	// CaymanIslands represents 'Cayman Islands (the)' country
	CaymanIslands = Country{
					// contains filtered or unexported fields
	}
	// CentralAfricanRepublic represents 'Central African Republic (the)' country
	CentralAfricanRepublic = Country{
							// contains filtered or unexported fields
	}
	// Chad represents 'Chad' country
	Chad = Country{
			// contains filtered or unexported fields
	}
	// Chile represents 'Chile' country
	Chile = Country{
			// contains filtered or unexported fields
	}
	// China represents 'China' country
	China = Country{
			// contains filtered or unexported fields
	}
	// ChristmasIsland represents 'Christmas Island' country
	ChristmasIsland = Country{
					// contains filtered or unexported fields
	}
	// Cocos represents 'Cocos (Keeling) Islands (the)' country
	Cocos = Country{
			// contains filtered or unexported fields
	}
	// Colombia represents 'Colombia' country
	Colombia = Country{
				// contains filtered or unexported fields
	}
	// Comoros represents 'Comoros (the)' country
	Comoros = Country{
			// contains filtered or unexported fields
	}
	// DemocraticRepublicOfTheCongo represents 'Congo (the Democratic Republic of the)' country
	DemocraticRepublicOfTheCongo = Country{
									// contains filtered or unexported fields
	}
	// Congo represents 'Congo (the)' country
	Congo = Country{
			// contains filtered or unexported fields
	}
	// CookIslands represents 'Cook Islands (the)' country
	CookIslands = Country{
				// contains filtered or unexported fields
	}
	// CostaRica represents 'Costa Rica' country
	CostaRica = Country{
				// contains filtered or unexported fields
	}
	// Croatia represents 'Croatia' country
	Croatia = Country{
			// contains filtered or unexported fields
	}
	// Cuba represents 'Cuba' country
	Cuba = Country{
			// contains filtered or unexported fields
	}
	// Curacao represents 'Curaçao' country
	Curacao = Country{
			// contains filtered or unexported fields
	}
	// Cyprus represents 'Cyprus' country
	Cyprus = Country{
			// contains filtered or unexported fields
	}
	// Czechia represents 'Czechia' country
	Czechia = Country{
			// contains filtered or unexported fields
	}
	// CoteDIvoire represents 'Côte d'Ivoire' country
	CoteDIvoire = Country{
				// contains filtered or unexported fields
	}
	// Denmark represents 'Denmark' country
	Denmark = Country{
			// contains filtered or unexported fields
	}
	// Djibouti represents 'Djibouti' country
	Djibouti = Country{
				// contains filtered or unexported fields
	}
	// Dominica represents 'Dominica' country
	Dominica = Country{
				// contains filtered or unexported fields
	}
	// DominicanRepublic represents 'Dominican Republic (the)' country
	DominicanRepublic = Country{
						// contains filtered or unexported fields
	}
	// Ecuador represents 'Ecuador' country
	Ecuador = Country{
			// contains filtered or unexported fields
	}
	// Egypt represents 'Egypt' country
	Egypt = Country{
			// contains filtered or unexported fields
	}
	// ElSalvador represents 'El Salvador' country
	ElSalvador = Country{
				// contains filtered or unexported fields
	}
	// EquatorialGuinea represents 'Equatorial Guinea' country
	EquatorialGuinea = Country{
						// contains filtered or unexported fields
	}
	// Eritrea represents 'Eritrea' country
	Eritrea = Country{
			// contains filtered or unexported fields
	}
	// Estonia represents 'Estonia' country
	Estonia = Country{
			// contains filtered or unexported fields
	}
	// Eswatini represents 'Eswatini' country
	Eswatini = Country{
				// contains filtered or unexported fields
	}
	// Ethiopia represents 'Ethiopia' country
	Ethiopia = Country{
				// contains filtered or unexported fields
	}
	// FalklandIslands represents 'Falkland Islands (the) [Malvinas]' country
	FalklandIslands = Country{
					// contains filtered or unexported fields
	}
	// FaroeIslands represents 'Faroe Islands (the)' country
	FaroeIslands = Country{
					// contains filtered or unexported fields
	}
	// Fiji represents 'Fiji' country
	Fiji = Country{
			// contains filtered or unexported fields
	}
	// Finland represents 'Finland' country
	Finland = Country{
			// contains filtered or unexported fields
	}
	// France represents 'France' country
	France = Country{
			// contains filtered or unexported fields
	}
	// FrenchGuiana represents 'French Guiana' country
	FrenchGuiana = Country{
					// contains filtered or unexported fields
	}
	// FrenchPolynesia represents 'French Polynesia' country
	FrenchPolynesia = Country{
					// contains filtered or unexported fields
	}
	// FrenchSouthernTerritories represents 'French Southern Territories (the)' country
	FrenchSouthernTerritories = Country{
								// contains filtered or unexported fields
	}
	// Gabon represents 'Gabon' country
	Gabon = Country{
			// contains filtered or unexported fields
	}
	// Gambia represents 'Gambia (the)' country
	Gambia = Country{
			// contains filtered or unexported fields
	}
	// Georgia represents 'Georgia' country
	Georgia = Country{
			// contains filtered or unexported fields
	}
	// Germany represents 'Germany' country
	Germany = Country{
			// contains filtered or unexported fields
	}
	// Ghana represents 'Ghana' country
	Ghana = Country{
			// contains filtered or unexported fields
	}
	// Gibraltar represents 'Gibraltar' country
	Gibraltar = Country{
				// contains filtered or unexported fields
	}
	// Greece represents 'Greece' country
	Greece = Country{
			// contains filtered or unexported fields
	}
	// Greenland represents 'Greenland' country
	Greenland = Country{
				// contains filtered or unexported fields
	}
	// Grenada represents 'Grenada' country
	Grenada = Country{
			// contains filtered or unexported fields
	}
	// Guadeloupe represents 'Guadeloupe' country
	Guadeloupe = Country{
				// contains filtered or unexported fields
	}
	// Guam represents 'Guam' country
	Guam = Country{
			// contains filtered or unexported fields
	}
	// Guatemala represents 'Guatemala' country
	Guatemala = Country{
				// contains filtered or unexported fields
	}
	// Guernsey represents 'Guernsey' country
	Guernsey = Country{
				// contains filtered or unexported fields
	}
	// Guinea represents 'Guinea' country
	Guinea = Country{
			// contains filtered or unexported fields
	}
	// GuineaBissau represents 'Guinea-Bissau' country
	GuineaBissau = Country{
					// contains filtered or unexported fields
	}
	// Guyana represents 'Guyana' country
	Guyana = Country{
			// contains filtered or unexported fields
	}
	// Haiti represents 'Haiti' country
	Haiti = Country{
			// contains filtered or unexported fields
	}
	// HeardIslandAndMcDonaldIslands represents 'Heard Island and McDonald Islands' country
	HeardIslandAndMcDonaldIslands = Country{
									// contains filtered or unexported fields
	}
	// HolySee represents 'Holy See (the)' country
	HolySee = Country{
			// contains filtered or unexported fields
	}
	// Honduras represents 'Honduras' country
	Honduras = Country{
				// contains filtered or unexported fields
	}
	// HongKong represents 'Hong Kong' country
	HongKong = Country{
				// contains filtered or unexported fields
	}
	// Hungary represents 'Hungary' country
	Hungary = Country{
			// contains filtered or unexported fields
	}
	// Iceland represents 'Iceland' country
	Iceland = Country{
			// contains filtered or unexported fields
	}
	// India represents 'India' country
	India = Country{
			// contains filtered or unexported fields
	}
	// Indonesia represents 'Indonesia' country
	Indonesia = Country{
				// contains filtered or unexported fields
	}
	// Iran represents 'Iran (Islamic Republic of)' country
	Iran = Country{
			// contains filtered or unexported fields
	}
	// Iraq represents 'Iraq' country
	Iraq = Country{
			// contains filtered or unexported fields
	}
	// Ireland represents 'Ireland' country
	Ireland = Country{
			// contains filtered or unexported fields
	}
	// IsleOfMan represents 'Isle of Man' country
	IsleOfMan = Country{
				// contains filtered or unexported fields
	}
	// Israel represents 'Israel' country
	Israel = Country{
			// contains filtered or unexported fields
	}
	// Italy represents 'Italy' country
	Italy = Country{
			// contains filtered or unexported fields
	}
	// Jamaica represents 'Jamaica' country
	Jamaica = Country{
			// contains filtered or unexported fields
	}
	// Japan represents 'Japan' country
	Japan = Country{
			// contains filtered or unexported fields
	}
	// Jersey represents 'Jersey' country
	Jersey = Country{
			// contains filtered or unexported fields
	}
	// Jordan represents 'Jordan' country
	Jordan = Country{
			// contains filtered or unexported fields
	}
	// Kazakhstan represents 'Kazakhstan' country
	Kazakhstan = Country{
				// contains filtered or unexported fields
	}
	// Kenya represents 'Kenya' country
	Kenya = Country{
			// contains filtered or unexported fields
	}
	// Kiribati represents 'Kiribati' country
	Kiribati = Country{
				// contains filtered or unexported fields
	}
	// NorthKorea represents 'Korea (the Democratic People's Republic of)' country
	NorthKorea = Country{
				// contains filtered or unexported fields
	}
	// SouthKorea represents 'Korea (the Republic of)' country
	SouthKorea = Country{
				// contains filtered or unexported fields
	}
	// Kuwait represents 'Kuwait' country
	Kuwait = Country{
			// contains filtered or unexported fields
	}
	// Kyrgyzstan represents 'Kyrgyzstan' country
	Kyrgyzstan = Country{
				// contains filtered or unexported fields
	}
	// LaoPeoplesDemocraticRepublic represents 'Lao People's Democratic Republic (the)' country
	LaoPeoplesDemocraticRepublic = Country{
									// contains filtered or unexported fields
	}
	// Latvia represents 'Latvia' country
	Latvia = Country{
			// contains filtered or unexported fields
	}
	// Lebanon represents 'Lebanon' country
	Lebanon = Country{
			// contains filtered or unexported fields
	}
	// Lesotho represents 'Lesotho' country
	Lesotho = Country{
			// contains filtered or unexported fields
	}
	// Liberia represents 'Liberia' country
	Liberia = Country{
			// contains filtered or unexported fields
	}
	// Libya represents 'Libya' country
	Libya = Country{
			// contains filtered or unexported fields
	}
	// Liechtenstein represents 'Liechtenstein' country
	Liechtenstein = Country{
					// contains filtered or unexported fields
	}
	// Lithuania represents 'Lithuania' country
	Lithuania = Country{
				// contains filtered or unexported fields
	}
	// Luxembourg represents 'Luxembourg' country
	Luxembourg = Country{
				// contains filtered or unexported fields
	}
	// Macao represents 'Macao' country
	Macao = Country{
			// contains filtered or unexported fields
	}
	// Madagascar represents 'Madagascar' country
	Madagascar = Country{
				// contains filtered or unexported fields
	}
	// Malawi represents 'Malawi' country
	Malawi = Country{
			// contains filtered or unexported fields
	}
	// Malaysia represents 'Malaysia' country
	Malaysia = Country{
				// contains filtered or unexported fields
	}
	// Maldives represents 'Maldives' country
	Maldives = Country{
				// contains filtered or unexported fields
	}
	// Mali represents 'Mali' country
	Mali = Country{
			// contains filtered or unexported fields
	}
	// Malta represents 'Malta' country
	Malta = Country{
			// contains filtered or unexported fields
	}
	// MarshallIslands represents 'Marshall Islands (the)' country
	MarshallIslands = Country{
					// contains filtered or unexported fields
	}
	// Martinique represents 'Martinique' country
	Martinique = Country{
				// contains filtered or unexported fields
	}
	// Mauritania represents 'Mauritania' country
	Mauritania = Country{
				// contains filtered or unexported fields
	}
	// Mauritius represents 'Mauritius' country
	Mauritius = Country{
				// contains filtered or unexported fields
	}
	// Mayotte represents 'Mayotte' country
	Mayotte = Country{
			// contains filtered or unexported fields
	}
	// Mexico represents 'Mexico' country
	Mexico = Country{
			// contains filtered or unexported fields
	}
	// Micronesia represents 'Micronesia (Federated States of)' country
	Micronesia = Country{
				// contains filtered or unexported fields
	}
	// Moldova represents 'Moldova (the Republic of)' country
	Moldova = Country{
			// contains filtered or unexported fields
	}
	// Monaco represents 'Monaco' country
	Monaco = Country{
			// contains filtered or unexported fields
	}
	// Mongolia represents 'Mongolia' country
	Mongolia = Country{
				// contains filtered or unexported fields
	}
	// Montenegro represents 'Montenegro' country
	Montenegro = Country{
				// contains filtered or unexported fields
	}
	// Montserrat represents 'Montserrat' country
	Montserrat = Country{
				// contains filtered or unexported fields
	}
	// Morocco represents 'Morocco' country
	Morocco = Country{
			// contains filtered or unexported fields
	}
	// Mozambique represents 'Mozambique' country
	Mozambique = Country{
				// contains filtered or unexported fields
	}
	// Myanmar represents 'Myanmar' country
	Myanmar = Country{
			// contains filtered or unexported fields
	}
	// Namibia represents 'Namibia' country
	Namibia = Country{
			// contains filtered or unexported fields
	}
	// Nauru represents 'Nauru' country
	Nauru = Country{
			// contains filtered or unexported fields
	}
	// Nepal represents 'Nepal' country
	Nepal = Country{
			// contains filtered or unexported fields
	}
	// Netherlands represents 'Netherlands (Kingdom of the)' country
	Netherlands = Country{
				// contains filtered or unexported fields
	}
	// NewCaledonia represents 'New Caledonia' country
	NewCaledonia = Country{
					// contains filtered or unexported fields
	}
	// NewZealand represents 'New Zealand' country
	NewZealand = Country{
				// contains filtered or unexported fields
	}
	// Nicaragua represents 'Nicaragua' country
	Nicaragua = Country{
				// contains filtered or unexported fields
	}
	// Niger represents 'Niger (the)' country
	Niger = Country{
			// contains filtered or unexported fields
	}
	// Nigeria represents 'Nigeria' country
	Nigeria = Country{
			// contains filtered or unexported fields
	}
	// Niue represents 'Niue' country
	Niue = Country{
			// contains filtered or unexported fields
	}
	// NorfolkIsland represents 'Norfolk Island' country
	NorfolkIsland = Country{
					// contains filtered or unexported fields
	}
	// NorthMacedonia represents 'North Macedonia' country
	NorthMacedonia = Country{
					// contains filtered or unexported fields
	}
	// NorthernMarianaIslands represents 'Northern Mariana Islands (the)' country
	NorthernMarianaIslands = Country{
							// contains filtered or unexported fields
	}
	// Norway represents 'Norway' country
	Norway = Country{
			// contains filtered or unexported fields
	}
	// Oman represents 'Oman' country
	Oman = Country{
			// contains filtered or unexported fields
	}
	// Pakistan represents 'Pakistan' country
	Pakistan = Country{
				// contains filtered or unexported fields
	}
	// Palau represents 'Palau' country
	Palau = Country{
			// contains filtered or unexported fields
	}
	// Palestine represents 'Palestine, State of' country
	Palestine = Country{
				// contains filtered or unexported fields
	}
	// Panama represents 'Panama' country
	Panama = Country{
			// contains filtered or unexported fields
	}
	// PapuaNewGuinea represents 'Papua New Guinea' country
	PapuaNewGuinea = Country{
					// contains filtered or unexported fields
	}
	// Paraguay represents 'Paraguay' country
	Paraguay = Country{
				// contains filtered or unexported fields
	}
	// Peru represents 'Peru' country
	Peru = Country{
			// contains filtered or unexported fields
	}
	// Philippines represents 'Philippines (the)' country
	Philippines = Country{
				// contains filtered or unexported fields
	}
	// Pitcairn represents 'Pitcairn' country
	Pitcairn = Country{
				// contains filtered or unexported fields
	}
	// Poland represents 'Poland' country
	Poland = Country{
			// contains filtered or unexported fields
	}
	// Portugal represents 'Portugal' country
	Portugal = Country{
				// contains filtered or unexported fields
	}
	// PuertoRico represents 'Puerto Rico' country
	PuertoRico = Country{
				// contains filtered or unexported fields
	}
	// Qatar represents 'Qatar' country
	Qatar = Country{
			// contains filtered or unexported fields
	}
	// Romania represents 'Romania' country
	Romania = Country{
			// contains filtered or unexported fields
	}
	// RussianFederation represents 'Russian Federation (the)' country
	RussianFederation = Country{
						// contains filtered or unexported fields
	}
	// Rwanda represents 'Rwanda' country
	Rwanda = Country{
			// contains filtered or unexported fields
	}
	// Reunion represents 'Réunion' country
	Reunion = Country{
			// contains filtered or unexported fields
	}
	// SaintBarthelemy represents 'Saint Barthélemy' country
	SaintBarthelemy = Country{
					// contains filtered or unexported fields
	}
	// SaintHelenaAscensionAndTristanDaCunha represents 'Saint Helena, Ascension and Tristan da Cunha' country
	SaintHelenaAscensionAndTristanDaCunha = Country{
											// contains filtered or unexported fields
	}
	// SaintKittsAndNevis represents 'Saint Kitts and Nevis' country
	SaintKittsAndNevis = Country{
						// contains filtered or unexported fields
	}
	// SaintLucia represents 'Saint Lucia' country
	SaintLucia = Country{
				// contains filtered or unexported fields
	}
	// SaintMartin represents 'Saint Martin (French part)' country
	SaintMartin = Country{
				// contains filtered or unexported fields
	}
	// SaintPierreAndMiquelon represents 'Saint Pierre and Miquelon' country
	SaintPierreAndMiquelon = Country{
							// contains filtered or unexported fields
	}
	// SaintVincentAndTheGrenadines represents 'Saint Vincent and the Grenadines' country
	SaintVincentAndTheGrenadines = Country{
									// contains filtered or unexported fields
	}
	// Samoa represents 'Samoa' country
	Samoa = Country{
			// contains filtered or unexported fields
	}
	// SanMarino represents 'San Marino' country
	SanMarino = Country{
				// contains filtered or unexported fields
	}
	// SaoTomeAndPrincipe represents 'Sao Tome and Principe' country
	SaoTomeAndPrincipe = Country{
						// contains filtered or unexported fields
	}
	// SaudiArabia represents 'Saudi Arabia' country
	SaudiArabia = Country{
				// contains filtered or unexported fields
	}
	// Senegal represents 'Senegal' country
	Senegal = Country{
			// contains filtered or unexported fields
	}
	// Serbia represents 'Serbia' country
	Serbia = Country{
			// contains filtered or unexported fields
	}
	// Seychelles represents 'Seychelles' country
	Seychelles = Country{
				// contains filtered or unexported fields
	}
	// SierraLeone represents 'Sierra Leone' country
	SierraLeone = Country{
				// contains filtered or unexported fields
	}
	// Singapore represents 'Singapore' country
	Singapore = Country{
				// contains filtered or unexported fields
	}
	// SintMaarten represents 'Sint Maarten (Dutch part)' country
	SintMaarten = Country{
				// contains filtered or unexported fields
	}
	// Slovakia represents 'Slovakia' country
	Slovakia = Country{
				// contains filtered or unexported fields
	}
	// Slovenia represents 'Slovenia' country
	Slovenia = Country{
				// contains filtered or unexported fields
	}
	// SolomonIslands represents 'Solomon Islands' country
	SolomonIslands = Country{
					// contains filtered or unexported fields
	}
	// Somalia represents 'Somalia' country
	Somalia = Country{
			// contains filtered or unexported fields
	}
	// SouthAfrica represents 'South Africa' country
	SouthAfrica = Country{
				// contains filtered or unexported fields
	}
	// SouthGeorgiaAndTheSouthSandwichIslands represents 'South Georgia and the South Sandwich Islands' country
	SouthGeorgiaAndTheSouthSandwichIslands = Country{
											// contains filtered or unexported fields
	}
	// SouthSudan represents 'South Sudan' country
	SouthSudan = Country{
				// contains filtered or unexported fields
	}
	// Spain represents 'Spain' country
	Spain = Country{
			// contains filtered or unexported fields
	}
	// SriLanka represents 'Sri Lanka' country
	SriLanka = Country{
				// contains filtered or unexported fields
	}
	// Sudan represents 'Sudan (the)' country
	Sudan = Country{
			// contains filtered or unexported fields
	}
	// Suriname represents 'Suriname' country
	Suriname = Country{
				// contains filtered or unexported fields
	}
	// SvalbardAndJanMayen represents 'Svalbard and Jan Mayen' country
	SvalbardAndJanMayen = Country{
						// contains filtered or unexported fields
	}
	// Sweden represents 'Sweden' country
	Sweden = Country{
			// contains filtered or unexported fields
	}
	// Switzerland represents 'Switzerland' country
	Switzerland = Country{
				// contains filtered or unexported fields
	}
	// SyrianArabRepublic represents 'Syrian Arab Republic (the)' country
	SyrianArabRepublic = Country{
						// contains filtered or unexported fields
	}
	// Taiwan represents 'Taiwan (Province of China)' country
	Taiwan = Country{
			// contains filtered or unexported fields
	}
	// Tajikistan represents 'Tajikistan' country
	Tajikistan = Country{
				// contains filtered or unexported fields
	}
	// TanzaniaTheUnitedRepublicOf represents 'Tanzania, the United Republic of' country
	TanzaniaTheUnitedRepublicOf = Country{
								// contains filtered or unexported fields
	}
	// Thailand represents 'Thailand' country
	Thailand = Country{
				// contains filtered or unexported fields
	}
	// TimorLeste represents 'Timor-Leste' country
	TimorLeste = Country{
				// contains filtered or unexported fields
	}
	// Togo represents 'Togo' country
	Togo = Country{
			// contains filtered or unexported fields
	}
	// Tokelau represents 'Tokelau' country
	Tokelau = Country{
			// contains filtered or unexported fields
	}
	// Tonga represents 'Tonga' country
	Tonga = Country{
			// contains filtered or unexported fields
	}
	// TrinidadAndTobago represents 'Trinidad and Tobago' country
	TrinidadAndTobago = Country{
						// contains filtered or unexported fields
	}
	// Tunisia represents 'Tunisia' country
	Tunisia = Country{
			// contains filtered or unexported fields
	}
	// Turkmenistan represents 'Turkmenistan' country
	Turkmenistan = Country{
					// contains filtered or unexported fields
	}
	// TurksAndCaicosIslands represents 'Turks and Caicos Islands (the)' country
	TurksAndCaicosIslands = Country{
							// contains filtered or unexported fields
	}
	// Tuvalu represents 'Tuvalu' country
	Tuvalu = Country{
			// contains filtered or unexported fields
	}
	// Turkiye represents 'Türkiye' country
	Turkiye = Country{
			// contains filtered or unexported fields
	}
	// Uganda represents 'Uganda' country
	Uganda = Country{
			// contains filtered or unexported fields
	}
	// Ukraine represents 'Ukraine' country
	Ukraine = Country{
			// contains filtered or unexported fields
	}
	// UnitedArabEmirates represents 'United Arab Emirates (the)' country
	UnitedArabEmirates = Country{
						// contains filtered or unexported fields
	}
	// UnitedKingdomOfGreatBritainAndNorthernIreland represents 'United Kingdom of Great Britain and Northern Ireland (the)' country
	UnitedKingdomOfGreatBritainAndNorthernIreland = Country{
													// contains filtered or unexported fields
	}
	// UnitedStatesMinorOutlyingIslands represents 'United States Minor Outlying Islands (the)' country
	UnitedStatesMinorOutlyingIslands = Country{
										// contains filtered or unexported fields
	}
	// UnitedStatesOfAmerica represents 'United States of America (the)' country
	UnitedStatesOfAmerica = Country{
							// contains filtered or unexported fields
	}
	// Uruguay represents 'Uruguay' country
	Uruguay = Country{
			// contains filtered or unexported fields
	}
	// Uzbekistan represents 'Uzbekistan' country
	Uzbekistan = Country{
				// contains filtered or unexported fields
	}
	// Vanuatu represents 'Vanuatu' country
	Vanuatu = Country{
			// contains filtered or unexported fields
	}
	// Venezuela represents 'Venezuela (Bolivarian Republic of)' country
	Venezuela = Country{
				// contains filtered or unexported fields
	}
	// VietNam represents 'Viet Nam' country
	VietNam = Country{
			// contains filtered or unexported fields
	}
	// BritishVirginIslands represents 'Virgin Islands (British)' country
	BritishVirginIslands = Country{
							// contains filtered or unexported fields
	}
	// USVirginIslands represents 'Virgin Islands (U.S.)' country
	USVirginIslands = Country{
					// contains filtered or unexported fields
	}
	// WallisAndFutuna represents 'Wallis and Futuna' country
	WallisAndFutuna = Country{
					// contains filtered or unexported fields
	}
	// WesternSahara represents 'Western Sahara*' country
	WesternSahara = Country{
					// contains filtered or unexported fields
	}
	// Yemen represents 'Yemen' country
	Yemen = Country{
			// contains filtered or unexported fields
	}
	// Zambia represents 'Zambia' country
	Zambia = Country{
			// contains filtered or unexported fields
	}
	// Zimbabwe represents 'Zimbabwe' country
	Zimbabwe = Country{
				// contains filtered or unexported fields
	}
	// AlandIslands represents 'Åland Islands' country
	AlandIslands = Country{
					// contains filtered or unexported fields
	}
)
View Source
var CountryByAlpha2 = map[string]Country{}/* 249 elements not displayed */
View Source
var CountryByAlpha3 = map[string]Country{}/* 249 elements not displayed */
View Source
var CountryByName = map[string]Country{}/* 249 elements not displayed */

Functions

This section is empty.

Types

type Alpha2Code

type Alpha2Code string

Alpha2Code represents alpha-2 code

func (Alpha2Code) IsSet

func (code Alpha2Code) IsSet() bool

IsSet indicates if Name is set

func (Alpha2Code) String

func (code Alpha2Code) String() string

String implementation of Stringer interface

func (*Alpha2Code) UnmarshalJSON

func (code *Alpha2Code) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshall implementation for alpha2code

func (Alpha2Code) Validate

func (code Alpha2Code) Validate() (err error)

Validate implementation of ozzo-validation Validate interface

func (Alpha2Code) Value

func (code Alpha2Code) Value() (value driver.Value, err error)

Value implementation of driver.Valuer

type Alpha3Code

type Alpha3Code string

Alpha3Code represents alpha-3 code

func (Alpha3Code) IsSet

func (code Alpha3Code) IsSet() bool

IsSet indicates if Name is set

func (Alpha3Code) String

func (code Alpha3Code) String() string

String implementation of Stringer interface

func (*Alpha3Code) UnmarshalJSON

func (code *Alpha3Code) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshall implementation for alpha3code

func (Alpha3Code) Validate

func (code Alpha3Code) Validate() (err error)

Validate implementation of ozzo-validation Validate interface

func (Alpha3Code) Value

func (code Alpha3Code) Value() (value driver.Value, err error)

Value implementation of driver.Valuer

type Country

type Country struct {
	// contains filtered or unexported fields
}

Country represents country entity according to ISO-3166.

func ByAlpha2Code

func ByAlpha2Code(code Alpha2Code) (result Country, ok bool)

ByAlpha2Code lookup for country by alpha-2 code

func ByAlpha2CodeErr

func ByAlpha2CodeErr(code Alpha2Code) (result Country, err error)

ByAlpha2CodeErr lookup for country by alpha-2 code with error return type

func ByAlpha2CodeStr

func ByAlpha2CodeStr(code string) (result Country, ok bool)

ByAlpha2CodeStr lookup for country by alpha-2 code string

func ByAlpha2CodeStrErr

func ByAlpha2CodeStrErr(code string) (result Country, err error)

ByAlpha2CodeStrErr lookup for country by alpha-2 code string with error return type

func ByAlpha3Code

func ByAlpha3Code(code Alpha3Code) (result Country, ok bool)

ByAlpha3Code lookup for country by alpha-3 code

func ByAlpha3CodeErr

func ByAlpha3CodeErr(code Alpha3Code) (result Country, err error)

ByAlpha3CodeErr lookup for country by alpha-3 code with error return type

func ByAlpha3CodeStr

func ByAlpha3CodeStr(code string) (result Country, ok bool)

ByAlpha3CodeStr lookup for country by alpha-3 code string

func ByAlpha3CodeStrErr

func ByAlpha3CodeStrErr(code string) (result Country, err error)

ByAlpha3CodeStrErr lookup for country by alpha-3 code string with error return type

func ByName

func ByName(country Name) (result Country, ok bool)

ByName lookup for country by name

func ByNameErr

func ByNameErr(country Name) (result Country, err error)

ByNameErr lookup for country by name with error return type

func ByNameStr

func ByNameStr(country string) (result Country, ok bool)

ByNameStr lookup for country by name string

func ByNameStrErr

func ByNameStrErr(country string) (result Country, err error)

ByNameStrErr lookup for country by name string with error return type

func (Country) Alpha2Code

func (country Country) Alpha2Code() Alpha2Code

Alpha2Code returns alpha-2 code

func (Country) Alpha2CodeStr

func (country Country) Alpha2CodeStr() string

Alpha2CodeStr returns country alpha-2 code string

func (Country) Alpha3Code

func (country Country) Alpha3Code() Alpha3Code

Alpha3Code returns alpha-2 code

func (Country) Alpha3CodeStr

func (country Country) Alpha3CodeStr() string

Alpha3CodeStr returns country alpha-2 code string

func (Country) Name

func (country Country) Name() Name

Name returns country name

func (Country) NameStr

func (country Country) NameStr() string

NameStr returns country name string

type Name

type Name string

Name represents country name

func (Name) IsSet

func (name Name) IsSet() bool

IsSet indicates if Name is set

func (Name) String

func (name Name) String() string

String implementation of Stringer interface

func (*Name) UnmarshalJSON

func (name *Name) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshall implementation for name

func (Name) Validate

func (name Name) Validate() (err error)

Validate implementation of ozzo-validation Validate interface

func (Name) Value

func (name Name) Value() (value driver.Value, err error)

Value implementation of driver.Valuer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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