Versions in this module Expand all Collapse all v1 v1.1.0 Jun 12, 2019 Changes in this version + func HasCountry(value string) bool + type Alpha3Map map[Alpha3]string v1.0.0 Jun 6, 2019 Changes in this version + var ErrCountryNotFound = errors.New("country not found") + var ErrNoCountryRows = errors.New("no country row") + type Alpha3 string + const Afghanistan + const AlandIslands + const Albania + const Algeria + const AmericanSamoa + const Andorra + const Angola + const Anguilla + const AntiguaAndBarbuda + const Argentina + const Armenia + const Aruba + const Australia + const Austria + const Azerbaijan + const Bahamas + const Bahrain + const Bangladesh + const Barbados + const Belarus + const Belgium + const Belize + const Benin + const Bermuda + const Bhutan + const Bolivia + const BosniaAndHerzegovina + const Botswana + const BouvetIsland + const Brazil + const BritishIndianOceanTerritory + const BritishVirginIslands + const Brunei + const Bulgaria + const BurkinaFaso + const Burundi + const CaboVerde + const Cambodia + const Cameroon + const Canada + const CaymanIslands + const CentralAfricanRepublic + const Chad + const Chile + const China + const ChristmasIsland + const CocosIslands + const Colombia + const Comoros + const Congo + const CookIslands + const CostaRica + const CoteDIvoire + const Croatia + const Cuba + const Curacao + const Cyprus + const Czechia + const DemocraticPeoplesRepublicOfKorea + const DemocraticRepublicOfTheCongo + const Denmark + const Djibouti + const Dominica + const DominicanRepublic + const Ecuador + const Egypt + const ElSalvador + const EquatorialGuinea + const Eritrea + const Estonia + const Ethiopia + const FalklandIslands + const FaroeIslands + const Fiji + const Finland + const France + const FrenchGuiana + const FrenchPolynesia + const FrenchSouthernTerritories + const Gabon + const Gambia + const Georgia + const Germany + const Ghana + const Gibraltar + const Greece + const Greenland + const Grenada + const Guadeloupe + const Guam + const Guatemala + const Guernsey + const Guinea + const GuineaBissau + const Guyana + const Haiti + const HeardIsland + const HolySee + const Honduras + const HongKong + const Hungary + const Iceland + const India + const Indonesia + const Iran + const Iraq + const Ireland + const IsleOfMan + const Israel + const Italy + const Jamaica + const Japan + const Jersey + const Jordan + const Kazakhstan + const Kenya + const Kiribati + const Kuwait + const Kyrgyzstan + const LaoPeoplesDemocraticRepublic + const Latvia + const Lebanon + const Lesotho + const Liberia + const Libya + const Liechtenstein + const Lithuania + const Luxembourg + const Macao + const Madagascar + const Malawi + const Malaysia + const Maldives + const Mali + const Malta + const MarshallIslands + const Martinique + const Mauritania + const Mauritius + const Mayotte + const Mexico + const Micronesia + const Monaco + const Mongolia + const Montenegro + const Montserrat + const Morocco + const Mozambique + const Myanmar + const Namibia + const Nauru + const Nepal + const Netherlands + const NewCaledonia + const NewZealand + const Nicaragua + const Niger + const Nigeria + const Niue + const NorfolkIsland + const NorthernMarianaIslands + const Norway + const Oman + const Pakistan + const Palau + const Panama + const PapuaNewGuinea + const Paraguay + const Peru + const Philippines + const Pitcairn + const Poland + const Portugal + const PuertoRico + const Qatar + const RepublicOfKorea + const RepublicOfMoldova + const Reunion + const Romania + const RussianFederation + const Rwanda + const SaintBarthelemy + const SaintHelena + const SaintKittsAndNevis + const SaintLucia + const SaintMartinFrench + const SaintPierreAndMiquelon + const SaintVincentAndTheGrenadines + const Samoa + const SanMarino + const SaoTomeAndPrincipe + const SaudiArabia + const Senegal + const Serbia + const Seychelles + const SierraLeone + const Singapore + const SintMaartenDutchPart + const Slovakia + const Slovenia + const SolomonIslands + const Somalia + const SouthAfrica + const SouthGeorgia + const SouthSudan + const Spain + const SriLanka + const StateOfPalestine + const Sudan + const Suriname + const SvalbardAndJanMayenIslands + const Swaziland + const Sweden + const Switzerland + const SyrianArabRepublic + const Taiwan + const Tajikistan + const Thailand + const TheFormerYugoslavRepublicOfMacedonia + const TimorLeste + const Togo + const Tokelau + const Tonga + const TrinidadAndTobago + const Tunisia + const Turkey + const Turkmenistan + const TurksAndCaicosIslands + const Tuvalu + const Uganda + const Ukraine + const UnitedArabEmirates + const UnitedKingdom + const UnitedRepublicOfTanzania + const UnitedStatesMinorOutlyingIslands + const UnitedStatesOfAmerica + const UnitedStatesVirginIslands + const Uruguay + const Uzbekistan + const Vanuatu + const Venezuela + const VietNam + const WallisAndFutunaIslands + const WesternSahara + const Yemen + const Zambia + const Zimbabwe + func (alpha3 Alpha3) Country() Country + func (alpha3 Alpha3) String() string + type Countries []Country + func List() (Countries, error) + func ListByContinent(query continent.Code) (Countries, error) + func ListByRegion(query region.Code) (Countries, error) + func ListBySubRegion(query subregion.Code) (Countries, error) + type Country struct + CLDRDisplayName string + Capital string + Continent continent.Code + DS string + DevelopedDevelopingCountries string + Dial string + EDGAR string + FIFA string + FIPS string + GAUL string + GeonameID float64 + GlobalCode string + GlobalName string + IOC string + ISO31661Alpha2 string + ISO31661Alpha3 string + ISO31661Numeric string + ISO4217CurrencyAlphabeticCode string + ISO4217CurrencyCountryName string + ISO4217CurrencyMinorUnit string + ISO4217CurrencyName string + ISO4217CurrencyNumericCode string + ITU string + IntermediateRegionCode string + IntermediateRegionName string + IsIndependent string + LandLockedDevelopingCountries string + Languages string + LeastDevelopedCountries string + M49 float64 + MARC string + OfficialNameAR string + OfficialNameCN string + OfficialNameEN string + OfficialNameES string + OfficialNameFR string + OfficialNameRU string + RegionCode region.Code + RegionName string + SmallIslandDevelopingStates string + SubRegionCode subregion.Code + SubRegionName string + TLD string + UNTERMArabicFormal string + UNTERMArabicShort string + UNTERMChineseFormal string + UNTERMChineseShort string + UNTERMEnglishFormal string + UNTERMEnglishShort string + UNTERMFrenchFormal string + UNTERMFrenchShort string + UNTERMRussianFormal string + UNTERMRussianShort string + UNTERMSpanishFormal string + UNTERMSpanishShort string + WMO string + func Find(query string) (*Country, error) + func (c Country) LanguagesList() language.Languages + func (c Country) MainLanguage() language.Language