Skip to content

Instantly share code, notes, and snippets.

@boratanrikulu
Last active December 7, 2020 09:57
Show Gist options
  • Save boratanrikulu/50f6990667cf881d0b377be72acf3056 to your computer and use it in GitHub Desktop.
Save boratanrikulu/50f6990667cf881d0b377be72acf3056 to your computer and use it in GitHub Desktop.
ctld-to-name.go
// countryTopLevelDomains keeps country coudes for packetstream names.
var countryTopLevelDomains = map[string]string{
"ae": "UnitedArabEmirates",
"af": "Afghanistan",
"al": "Albania",
"am": "Armenia",
"ar": "Argentina",
"at": "Austria",
"au": "Australia",
"aw": "Aruba",
"az": "Azerbaijan",
"ba": "BosniaandHerzegovina",
"bd": "Bangladesh",
"be": "Belgium",
"bg": "Bulgaria",
"bh": "Bahrain",
"bn": "Brunei",
"br": "Brazil",
"bs": "Bahamas",
"by": "Belarus",
"ca": "Canada",
"ch": "Switzerland",
"cl": "Chile",
"cm": "Cameroon",
"cn": "China",
"co": "Colombia",
"cr": "CostaRica",
"cu": "Cuba",
"cy": "Cyprus",
"cz": "Czechia",
"de": "Germany",
"dk": "Denmark",
"do": "DominicanRepublic",
"dz": "Algeria",
"ec": "Ecuador",
"ee": "Estonia",
"eg": "Egypt",
"es": "Spain",
"et": "Ethiopia",
"fi": "Finland",
"fr": "France",
"ge": "Georgia",
"gh": "Ghana",
"gr": "Greece",
"gt": "Guatemala",
"gy": "Guyana",
"hk": "HongKong",
"hr": "Croatia",
"hu": "Hungary",
"id": "Indonesia",
"ie": "Ireland",
"il": "Israel",
"in": "India",
"iq": "Iraq",
"ir": "Iran",
"it": "Italy",
"jm": "Jamaica",
"jo": "HashemiteKingdomofJordan",
"jp": "Japan",
"ke": "Kenya",
"kh": "Cambodia",
"kr": "SouthKorea",
"kw": "Kuwait",
"kz": "Kazakhstan",
"li": "Liechtenstein",
"lk": "SriLanka",
"lt": "RepublicofLithuania",
"lu": "Luxembourg",
"lv": "Latvia",
"mc": "Morocco",
"md": "RepublicofMoldova",
"me": "Montenegro",
"mg": "Madagascar",
"mk": "Macedonia",
"mm": "Myanmar",
"mn": "Mongolia",
"mu": "Mauritius",
"mw": "Mexico",
"my": "Malaysia",
"mz": "Mozambique",
"ng": "Nigeria",
"nl": "Netherlands",
"no": "Norway",
"np": "Nepal",
"nz": "NewZealand",
"om": "Oman",
"pa": "Panama",
"pe": "Peru",
"pg": "PapuaNewGuinea",
"ph": "Philippines",
"pk": "Pakistan",
"pl": "Poland",
"pr": "PuertoRico",
"ps": "Palestine",
"pt": "Portugal",
"py": "Paraguay",
"qa": "Qatar",
"ro": "Romania",
"rs": "Serbia",
"ru": "Russia",
"sa": "SaudiArabia",
"sc": "Seychelles",
"sd": "Sudan",
"se": "Sweden",
"sg": "Singapore",
"si": "Slovenia",
"sk": "Slovakia",
"sn": "Senegal",
"so": "Somalia",
"sr": "Suriname",
"sv": "ElSalvador",
"sy": "Syria",
"th": "Thailand",
"tj": "Tajikistan",
"tn": "Tunisia",
"tr": "Turkey",
"tt": "TrinidadandTobago",
"tw": "Taiwan",
"ua": "Ukraine",
"ug": "Uganda",
"uk": "UnitedKingdom",
"us": "UnitedStates",
"uz": "Uzbekistan",
"ve": "Venezuela",
"vg": "BritishVirginIslands",
"vn": "Vietnam",
"za": "SouthAfrica",
"zm": "Zambia",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment