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

Will ISO-3166-3 be supported? #64

Open jakewilliami opened 10 months ago

jakewilliami commented 10 months ago

I notice you have a data file for ISO-3166-3, but I can't (for example) find SU. Are you planning on supporting these?

biter777 commented 10 months ago

The code was removed from ISO 3166-1 in 1992. Explain in more detail for what purpose you need to include obsolete code?

jakewilliami commented 10 months ago

I'm pulling top level domains from the IANA TLD database, and if they are country-code TLDs, I am using your library to cross-reference using country code.

SU was just an example, but in general, support for ISO 3166-3 might be useful if you need to reference countries that have been removed from ISO 3166-1. It looks like you already have the data but it's not yet implemented in the library.

biter777 commented 9 months ago

@jakewilliami Could you do this PR?