Versions in this module Expand all Collapse all v0 v0.2.0 Oct 6, 2023 Changes in this version type Country + G20Member bool + G7Member bool + func (c *Country) GDPRCompliant() bool v0.1.1 Oct 6, 2023 v0.1.0 Oct 4, 2023 Changes in this version + var All = []Country + var Alpha2 = []string + var Regions = []string + var Subregions = []string + type Bounds struct + Northeast Coord + Southwest Coord + type Coord struct + Lat float64 + Lng float64 + type Country struct + AddressFormat string + Alpha2 string + Alpha3 string + Capital string + Continent string + CountryCode string + CurrencyCode string + EEAMember bool + ESMMember bool + EUMember bool + GEC string + Geo Geo + IOC string + ISOLongName string + ISOShortName string + InternationalPrefix string + LanguagesOfficial []string + LanguagesSpoken []string + NationalDestinationCodeLengths []int + NationalNumberLengths []int + NationalPrefix string + Nationality string + Number string + PostalCodeFormat string + Region string + StartOfWeek string + Subdivisions map[string]Subdivision + Subregion string + Timezones []string + Translations map[string]string + UnLocode string + UnofficialNames []string + VatRates VatRates + WorldRegion string + func Get(alpha2 string) *Country + func InEU() []Country + func InRegion(region string) []Country + func InSubregion(subregion string) []Country + func (c *Country) EmojiFlag() string + func (c *Country) FormatAddress(recipient, street, postalCode, city, region string) string + func (c *Country) HasPostalCode() bool + func (c *Country) MatchPostalCode(postalCode string) bool + func (c *Country) Subdivision(code string) Subdivision + func (c *Country) SubdivisionByName(name string) Subdivision + type Geo struct + Bounds Bounds + Latitude float64 + Longitude float64 + MaxLatitude float64 + MaxLongitude float64 + MinLatitude float64 + MinLongitude float64 + type Subdivision struct + Capital bool + Code string + Geo Geo + Name string + Translations map[string]string + Type string + type VatRates struct + Parking int + Reduced []int + Standard int + SuperReduced int