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
413 stars 76 forks source link

Will ISO-3166-3 be supported? #64

Open jakewilliami opened 1 year ago

jakewilliami commented 1 year 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 1 year 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 1 year 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 1 year ago

@jakewilliami Could you do this PR?