biter777 / countries

Countries - ISO-639, ISO-3166 countries codes with subdivisions and names, ISO-4217 currency designators, ITU-T E.164 IDD phone codes, countries capitals, UN M.49 codes, IANA ccTLD countries domains, FIPS, IOC/NOC and FIFA codes, VERY VERY FAST, compatible with Databases/JSON/BSON/GOB/XML/CSV, Emoji countries flags and currencies, Unicode CLDR.
https://pkg.go.dev/github.com/biter777/countries?tab=doc
BSD 2-Clause "Simplified" License
390 stars 74 forks source link

Wrong value of BRA (Brasil) CountryCode #51

Closed ElioenaiFerrari closed 1 year ago

ElioenaiFerrari commented 1 year ago

The value 986 is for currency, not for country. The Country code of BRASIL is 076 or 76. Can you fix it?

ElioenaiFerrari commented 1 year ago

BUG description

The value 986 is for currency, not for country. The Country code of BRASIL is 076 or 76. Can you fix it?

What change is being suggested?

The bug can be located at the following link: https://github.com/biter777/countries/blob/225d6501d4fceeea9d6b104ed51530daf4cc8594/countriesconst.go#L625

Please change the code:

// BRA CountryCode = 986
BRA CountryCode = 986

To:

// BRA CountryCode = 76
BRA CountryCode = 76