github.com/tanqiangyes/govalidator@v0.0.5/types.go (about) 1 package govalidator 2 3 import ( 4 "reflect" 5 "regexp" 6 "sort" 7 "sync" 8 ) 9 10 // Validator is a wrapper for a validator function that returns bool and accepts string. 11 type Validator[T ~string] func(str T) bool 12 13 // CustomTypeValidator is a wrapper for validator functions that returns bool and accepts any type. 14 // The second parameter should be the context (in the case of validating a struct: the whole object being validated). 15 type CustomTypeValidator[T any] func(i T, o T) bool 16 17 // ParamValidator is a wrapper for validator functions that accept additional parameters. 18 type ParamValidator[T ~string] func(str T, params ...string) bool 19 20 // InterfaceParamValidator is a wrapper for functions that accept variants parameters for an interface value 21 type InterfaceParamValidator[T any] func(in T, params ...string) bool 22 23 type tagOptionsMap map[string]tagOption 24 25 func (t tagOptionsMap) orderedKeys() []string { 26 var keys []string 27 for k := range t { 28 keys = append(keys, k) 29 } 30 31 sort.Slice(keys, func(a, b int) bool { 32 return t[keys[a]].order < t[keys[b]].order 33 }) 34 35 return keys 36 } 37 38 type tagOption struct { 39 name string 40 customErrorMessage string 41 order int 42 } 43 44 // UnsupportedTypeError is a wrapper for reflect.Type 45 type UnsupportedTypeError struct { 46 Type reflect.Type 47 } 48 49 // stringValues is a slice of reflect.Value holding *reflect.StringValue. 50 // It implements the methods to sort by string. 51 type stringValues []reflect.Value 52 53 // InterfaceParamTagMap is a map of functions accept variants parameters for an interface value 54 var InterfaceParamTagMap = map[string]InterfaceParamValidator[any]{ 55 "type": IsType[any], 56 } 57 58 // InterfaceParamTagRegexMap maps interface param tags to their respective regexes. 59 var InterfaceParamTagRegexMap = map[string]*regexp.Regexp{ 60 "type": regexp.MustCompile(`^type\((.*)\)$`), 61 } 62 63 // ParamTagMap is a map of functions accept variants parameters 64 var ParamTagMap = map[string]ParamValidator[string]{ 65 "length": ByteLength[string], 66 "range": Range[string], 67 "runelength": RuneLength[string], 68 "stringlength": StringLength[string], 69 "matches": StringMatches[string], 70 "in": IsInRaw[string], 71 "rsapub": IsRsaPub[string], 72 "minstringlength": MinStringLength[string], 73 "maxstringlength": MaxStringLength[string], 74 } 75 76 // ParamTagRegexMap maps param tags to their respective regexes. 77 var ParamTagRegexMap = map[string]*regexp.Regexp{ 78 "range": regexp.MustCompile("^range\\((\\d+(?:.\\d+)?)\\|(\\d+(?:.\\d+)?)\\)$"), 79 "length": regexp.MustCompile("^length\\((\\d+)\\|(\\d+)\\)$"), 80 "runelength": regexp.MustCompile("^runelength\\((\\d+)\\|(\\d+)\\)$"), 81 "stringlength": regexp.MustCompile("^stringlength\\((\\d+)\\|(\\d+)\\)$"), 82 "in": regexp.MustCompile(`^in\((.*)\)`), 83 "matches": regexp.MustCompile(`^matches\((.+)\)$`), 84 "rsapub": regexp.MustCompile("^rsapub\\((\\d+)\\)$"), 85 "minstringlength": regexp.MustCompile("^minstringlength\\((\\d+)\\)$"), 86 "maxstringlength": regexp.MustCompile("^maxstringlength\\((\\d+)\\)$"), 87 } 88 89 type customTypeTagMap[T any] struct { 90 validators map[string]CustomTypeValidator[T] 91 92 sync.RWMutex 93 } 94 95 func (tm *customTypeTagMap[T]) Get(name string) (CustomTypeValidator[T], bool) { 96 tm.RLock() 97 defer tm.RUnlock() 98 v, ok := tm.validators[name] 99 return v, ok 100 } 101 102 func (tm *customTypeTagMap[T]) Set(name string, ctv CustomTypeValidator[T]) { 103 tm.Lock() 104 defer tm.Unlock() 105 tm.validators[name] = ctv 106 } 107 108 // CustomTypeTagMap is a map of functions that can be used as tags for ValidateStruct function. 109 // Use this to validate compound or custom types that need to be handled as a whole, e.g. 110 // `type UUID [16]byte` (this would be handled as an array of bytes). 111 var CustomTypeTagMap = &customTypeTagMap[any]{validators: make(map[string]CustomTypeValidator[any])} 112 113 // TagMap is a map of functions, that can be used as tags for ValidateStruct function. 114 var TagMap = map[string]Validator[string]{ 115 "email": IsEmail[string], 116 "url": IsURL[string], 117 "dialstring": IsDialString[string], 118 "requrl": IsRequestURL[string], 119 "requri": IsRequestURI[string], 120 "alpha": IsAlpha[string], 121 "utfletter": IsUTFLetter[string], 122 "alphanum": IsAlphanumeric[string], 123 "utfletternum": IsUTFLetterNumeric[string], 124 "numeric": IsNumeric[string], 125 "utfnumeric": IsUTFNumeric[string], 126 "utfdigit": IsUTFDigit[string], 127 "hexadecimal": IsHexadecimal[string], 128 "hexcolor": IsHexcolor[string], 129 "rgbcolor": IsRGBcolor[string], 130 "lowercase": IsLowerCase[string], 131 "uppercase": IsUpperCase[string], 132 "int": IsInt[string], 133 "float": IsFloat[string], 134 "null": IsNull[string], 135 "notnull": IsNotNull[string], 136 "uuid": IsUUID[string], 137 "uuidv3": IsUUIDv3[string], 138 "uuidv4": IsUUIDv4[string], 139 "uuidv5": IsUUIDv5[string], 140 "creditcard": IsCreditCard[string], 141 "isbn10": IsISBN10[string], 142 "isbn13": IsISBN13[string], 143 "json": IsJSON[string], 144 "multibyte": IsMultibyte[string], 145 "ascii": IsASCII[string], 146 "printableascii": IsPrintableASCII[string], 147 "fullwidth": IsFullWidth[string], 148 "halfwidth": IsHalfWidth[string], 149 "variablewidth": IsVariableWidth[string], 150 "base64": IsBase64[string], 151 "datauri": IsDataURI[string], 152 "ip": IsIP[string], 153 "port": IsPort[string], 154 "ipv4": IsIPv4[string], 155 "ipv6": IsIPv6[string], 156 "dns": IsDNSName[string], 157 "host": IsHost[string], 158 "mac": IsMAC[string], 159 "latitude": IsLatitude[string], 160 "longitude": IsLongitude[string], 161 "ssn": IsSSN[string], 162 "semver": IsSemver[string], 163 "rfc3339": IsRFC3339[string], 164 "rfc3339WithoutZone": IsRFC3339WithoutZone[string], 165 "ISO3166Alpha2": IsISO3166Alpha2[string], 166 "ISO3166Alpha3": IsISO3166Alpha3[string], 167 "ISO4217": IsISO4217[string], 168 "IMEI": IsIMEI[string], 169 "ulid": IsULID[string], 170 } 171 172 // ISO3166Entry stores country codes 173 type ISO3166Entry struct { 174 EnglishShortName string 175 FrenchShortName string 176 Alpha2Code string 177 Alpha3Code string 178 Numeric string 179 } 180 181 // ISO3166List based on https://www.iso.org/obp/ui/#search/code/ Code Type "Officially Assigned Codes" 182 var ISO3166List = []ISO3166Entry{ 183 {"Afghanistan", "Afghanistan (l')", "AF", "AFG", "004"}, 184 {"Albania", "Albanie (l')", "AL", "ALB", "008"}, 185 {"Antarctica", "Antarctique (l')", "AQ", "ATA", "010"}, 186 {"Algeria", "Algérie (l')", "DZ", "DZA", "012"}, 187 {"American Samoa", "Samoa américaines (les)", "AS", "ASM", "016"}, 188 {"Andorra", "Andorre (l')", "AD", "AND", "020"}, 189 {"Angola", "Angola (l')", "AO", "AGO", "024"}, 190 {"Antigua and Barbuda", "Antigua-et-Barbuda", "AG", "ATG", "028"}, 191 {"Azerbaijan", "Azerbaïdjan (l')", "AZ", "AZE", "031"}, 192 {"Argentina", "Argentine (l')", "AR", "ARG", "032"}, 193 {"Australia", "Australie (l')", "AU", "AUS", "036"}, 194 {"Austria", "Autriche (l')", "AT", "AUT", "040"}, 195 {"Bahamas (the)", "Bahamas (les)", "BS", "BHS", "044"}, 196 {"Bahrain", "Bahreïn", "BH", "BHR", "048"}, 197 {"Bangladesh", "Bangladesh (le)", "BD", "BGD", "050"}, 198 {"Armenia", "Arménie (l')", "AM", "ARM", "051"}, 199 {"Barbados", "Barbade (la)", "BB", "BRB", "052"}, 200 {"Belgium", "Belgique (la)", "BE", "BEL", "056"}, 201 {"Bermuda", "Bermudes (les)", "BM", "BMU", "060"}, 202 {"Bhutan", "Bhoutan (le)", "BT", "BTN", "064"}, 203 {"Bolivia (Plurinational State of)", "Bolivie (État plurinational de)", "BO", "BOL", "068"}, 204 {"Bosnia and Herzegovina", "Bosnie-Herzégovine (la)", "BA", "BIH", "070"}, 205 {"Botswana", "Botswana (le)", "BW", "BWA", "072"}, 206 {"Bouvet Island", "Bouvet (l'Île)", "BV", "BVT", "074"}, 207 {"Brazil", "Brésil (le)", "BR", "BRA", "076"}, 208 {"Belize", "Belize (le)", "BZ", "BLZ", "084"}, 209 {"British Indian Ocean Territory (the)", "Indien (le Territoire britannique de l'océan)", "IO", "IOT", "086"}, 210 {"Solomon Islands", "Salomon (Îles)", "SB", "SLB", "090"}, 211 {"Virgin Islands (British)", "Vierges britanniques (les Îles)", "VG", "VGB", "092"}, 212 {"Brunei Darussalam", "Brunéi Darussalam (le)", "BN", "BRN", "096"}, 213 {"Bulgaria", "Bulgarie (la)", "BG", "BGR", "100"}, 214 {"Myanmar", "Myanmar (le)", "MM", "MMR", "104"}, 215 {"Burundi", "Burundi (le)", "BI", "BDI", "108"}, 216 {"Belarus", "Bélarus (le)", "BY", "BLR", "112"}, 217 {"Cambodia", "Cambodge (le)", "KH", "KHM", "116"}, 218 {"Cameroon", "Cameroun (le)", "CM", "CMR", "120"}, 219 {"Canada", "Canada (le)", "CA", "CAN", "124"}, 220 {"Cabo Verde", "Cabo Verde", "CV", "CPV", "132"}, 221 {"Cayman Islands (the)", "Caïmans (les Îles)", "KY", "CYM", "136"}, 222 {"Central African Republic (the)", "République centrafricaine (la)", "CF", "CAF", "140"}, 223 {"Sri Lanka", "Sri Lanka", "LK", "LKA", "144"}, 224 {"Chad", "Tchad (le)", "TD", "TCD", "148"}, 225 {"Chile", "Chili (le)", "CL", "CHL", "152"}, 226 {"China", "Chine (la)", "CN", "CHN", "156"}, 227 {"Taiwan (Province of China)", "Taïwan (Province de Chine)", "TW", "TWN", "158"}, 228 {"Christmas Island", "Christmas (l'Île)", "CX", "CXR", "162"}, 229 {"Cocos (Keeling) Islands (the)", "Cocos (les Îles)/ Keeling (les Îles)", "CC", "CCK", "166"}, 230 {"Colombia", "Colombie (la)", "CO", "COL", "170"}, 231 {"Comoros (the)", "Comores (les)", "KM", "COM", "174"}, 232 {"Mayotte", "Mayotte", "YT", "MYT", "175"}, 233 {"Congo (the)", "Congo (le)", "CG", "COG", "178"}, 234 {"Congo (the Democratic Republic of the)", "Congo (la République démocratique du)", "CD", "COD", "180"}, 235 {"Cook Islands (the)", "Cook (les Îles)", "CK", "COK", "184"}, 236 {"Costa Rica", "Costa Rica (le)", "CR", "CRI", "188"}, 237 {"Croatia", "Croatie (la)", "HR", "HRV", "191"}, 238 {"Cuba", "Cuba", "CU", "CUB", "192"}, 239 {"Cyprus", "Chypre", "CY", "CYP", "196"}, 240 {"Czech Republic (the)", "tchèque (la République)", "CZ", "CZE", "203"}, 241 {"Benin", "Bénin (le)", "BJ", "BEN", "204"}, 242 {"Denmark", "Danemark (le)", "DK", "DNK", "208"}, 243 {"Dominica", "Dominique (la)", "DM", "DMA", "212"}, 244 {"Dominican Republic (the)", "dominicaine (la République)", "DO", "DOM", "214"}, 245 {"Ecuador", "Équateur (l')", "EC", "ECU", "218"}, 246 {"El Salvador", "El Salvador", "SV", "SLV", "222"}, 247 {"Equatorial Guinea", "Guinée équatoriale (la)", "GQ", "GNQ", "226"}, 248 {"Ethiopia", "Éthiopie (l')", "ET", "ETH", "231"}, 249 {"Eritrea", "Érythrée (l')", "ER", "ERI", "232"}, 250 {"Estonia", "Estonie (l')", "EE", "EST", "233"}, 251 {"Faroe Islands (the)", "Féroé (les Îles)", "FO", "FRO", "234"}, 252 {"Falkland Islands (the) [Malvinas]", "Falkland (les Îles)/Malouines (les Îles)", "FK", "FLK", "238"}, 253 {"South Georgia and the South Sandwich Islands", "Géorgie du Sud-et-les Îles Sandwich du Sud (la)", "GS", "SGS", "239"}, 254 {"Fiji", "Fidji (les)", "FJ", "FJI", "242"}, 255 {"Finland", "Finlande (la)", "FI", "FIN", "246"}, 256 {"Åland Islands", "Åland(les Îles)", "AX", "ALA", "248"}, 257 {"France", "France (la)", "FR", "FRA", "250"}, 258 {"French Guiana", "Guyane française (la )", "GF", "GUF", "254"}, 259 {"French Polynesia", "Polynésie française (la)", "PF", "PYF", "258"}, 260 {"French Southern Territories (the)", "Terres australes françaises (les)", "TF", "ATF", "260"}, 261 {"Djibouti", "Djibouti", "DJ", "DJI", "262"}, 262 {"Gabon", "Gabon (le)", "GA", "GAB", "266"}, 263 {"Georgia", "Géorgie (la)", "GE", "GEO", "268"}, 264 {"Gambia (the)", "Gambie (la)", "GM", "GMB", "270"}, 265 {"Palestine, State of", "Palestine, État de", "PS", "PSE", "275"}, 266 {"Germany", "Allemagne (l')", "DE", "DEU", "276"}, 267 {"Ghana", "Ghana (le)", "GH", "GHA", "288"}, 268 {"Gibraltar", "Gibraltar", "GI", "GIB", "292"}, 269 {"Kiribati", "Kiribati", "KI", "KIR", "296"}, 270 {"Greece", "Grèce (la)", "GR", "GRC", "300"}, 271 {"Greenland", "Groenland (le)", "GL", "GRL", "304"}, 272 {"Grenada", "Grenade (la)", "GD", "GRD", "308"}, 273 {"Guadeloupe", "Guadeloupe (la)", "GP", "GLP", "312"}, 274 {"Guam", "Guam", "GU", "GUM", "316"}, 275 {"Guatemala", "Guatemala (le)", "GT", "GTM", "320"}, 276 {"Guinea", "Guinée (la)", "GN", "GIN", "324"}, 277 {"Guyana", "Guyana (le)", "GY", "GUY", "328"}, 278 {"Haiti", "Haïti", "HT", "HTI", "332"}, 279 {"Heard Island and McDonald Islands", "Heard-et-Îles MacDonald (l'Île)", "HM", "HMD", "334"}, 280 {"Holy See (the)", "Saint-Siège (le)", "VA", "VAT", "336"}, 281 {"Honduras", "Honduras (le)", "HN", "HND", "340"}, 282 {"Hong Kong", "Hong Kong", "HK", "HKG", "344"}, 283 {"Hungary", "Hongrie (la)", "HU", "HUN", "348"}, 284 {"Iceland", "Islande (l')", "IS", "ISL", "352"}, 285 {"India", "Inde (l')", "IN", "IND", "356"}, 286 {"Indonesia", "Indonésie (l')", "ID", "IDN", "360"}, 287 {"Iran (Islamic Republic of)", "Iran (République Islamique d')", "IR", "IRN", "364"}, 288 {"Iraq", "Iraq (l')", "IQ", "IRQ", "368"}, 289 {"Ireland", "Irlande (l')", "IE", "IRL", "372"}, 290 {"Israel", "Israël", "IL", "ISR", "376"}, 291 {"Italy", "Italie (l')", "IT", "ITA", "380"}, 292 {"Côte d'Ivoire", "Côte d'Ivoire (la)", "CI", "CIV", "384"}, 293 {"Jamaica", "Jamaïque (la)", "JM", "JAM", "388"}, 294 {"Japan", "Japon (le)", "JP", "JPN", "392"}, 295 {"Kazakhstan", "Kazakhstan (le)", "KZ", "KAZ", "398"}, 296 {"Jordan", "Jordanie (la)", "JO", "JOR", "400"}, 297 {"Kenya", "Kenya (le)", "KE", "KEN", "404"}, 298 {"Korea (the Democratic People's Republic of)", "Corée (la République populaire démocratique de)", "KP", "PRK", "408"}, 299 {"Korea (the Republic of)", "Corée (la République de)", "KR", "KOR", "410"}, 300 {"Kuwait", "Koweït (le)", "KW", "KWT", "414"}, 301 {"Kyrgyzstan", "Kirghizistan (le)", "KG", "KGZ", "417"}, 302 {"Lao People's Democratic Republic (the)", "Lao, République démocratique populaire", "LA", "LAO", "418"}, 303 {"Lebanon", "Liban (le)", "LB", "LBN", "422"}, 304 {"Lesotho", "Lesotho (le)", "LS", "LSO", "426"}, 305 {"Latvia", "Lettonie (la)", "LV", "LVA", "428"}, 306 {"Liberia", "Libéria (le)", "LR", "LBR", "430"}, 307 {"Libya", "Libye (la)", "LY", "LBY", "434"}, 308 {"Liechtenstein", "Liechtenstein (le)", "LI", "LIE", "438"}, 309 {"Lithuania", "Lituanie (la)", "LT", "LTU", "440"}, 310 {"Luxembourg", "Luxembourg (le)", "LU", "LUX", "442"}, 311 {"Macao", "Macao", "MO", "MAC", "446"}, 312 {"Madagascar", "Madagascar", "MG", "MDG", "450"}, 313 {"Malawi", "Malawi (le)", "MW", "MWI", "454"}, 314 {"Malaysia", "Malaisie (la)", "MY", "MYS", "458"}, 315 {"Maldives", "Maldives (les)", "MV", "MDV", "462"}, 316 {"Mali", "Mali (le)", "ML", "MLI", "466"}, 317 {"Malta", "Malte", "MT", "MLT", "470"}, 318 {"Martinique", "Martinique (la)", "MQ", "MTQ", "474"}, 319 {"Mauritania", "Mauritanie (la)", "MR", "MRT", "478"}, 320 {"Mauritius", "Maurice", "MU", "MUS", "480"}, 321 {"Mexico", "Mexique (le)", "MX", "MEX", "484"}, 322 {"Monaco", "Monaco", "MC", "MCO", "492"}, 323 {"Mongolia", "Mongolie (la)", "MN", "MNG", "496"}, 324 {"Moldova (the Republic of)", "Moldova , République de", "MD", "MDA", "498"}, 325 {"Montenegro", "Monténégro (le)", "ME", "MNE", "499"}, 326 {"Montserrat", "Montserrat", "MS", "MSR", "500"}, 327 {"Morocco", "Maroc (le)", "MA", "MAR", "504"}, 328 {"Mozambique", "Mozambique (le)", "MZ", "MOZ", "508"}, 329 {"Oman", "Oman", "OM", "OMN", "512"}, 330 {"Namibia", "Namibie (la)", "NA", "NAM", "516"}, 331 {"Nauru", "Nauru", "NR", "NRU", "520"}, 332 {"Nepal", "Népal (le)", "NP", "NPL", "524"}, 333 {"Netherlands (the)", "Pays-Bas (les)", "NL", "NLD", "528"}, 334 {"Curaçao", "Curaçao", "CW", "CUW", "531"}, 335 {"Aruba", "Aruba", "AW", "ABW", "533"}, 336 {"Sint Maarten (Dutch part)", "Saint-Martin (partie néerlandaise)", "SX", "SXM", "534"}, 337 {"Bonaire, Sint Eustatius and Saba", "Bonaire, Saint-Eustache et Saba", "BQ", "BES", "535"}, 338 {"New Caledonia", "Nouvelle-Calédonie (la)", "NC", "NCL", "540"}, 339 {"Vanuatu", "Vanuatu (le)", "VU", "VUT", "548"}, 340 {"New Zealand", "Nouvelle-Zélande (la)", "NZ", "NZL", "554"}, 341 {"Nicaragua", "Nicaragua (le)", "NI", "NIC", "558"}, 342 {"Niger (the)", "Niger (le)", "NE", "NER", "562"}, 343 {"Nigeria", "Nigéria (le)", "NG", "NGA", "566"}, 344 {"Niue", "Niue", "NU", "NIU", "570"}, 345 {"Norfolk Island", "Norfolk (l'Île)", "NF", "NFK", "574"}, 346 {"Norway", "Norvège (la)", "NO", "NOR", "578"}, 347 {"Northern Mariana Islands (the)", "Mariannes du Nord (les Îles)", "MP", "MNP", "580"}, 348 {"United States Minor Outlying Islands (the)", "Îles mineures éloignées des États-Unis (les)", "UM", "UMI", "581"}, 349 {"Micronesia (Federated States of)", "Micronésie (États fédérés de)", "FM", "FSM", "583"}, 350 {"Marshall Islands (the)", "Marshall (Îles)", "MH", "MHL", "584"}, 351 {"Palau", "Palaos (les)", "PW", "PLW", "585"}, 352 {"Pakistan", "Pakistan (le)", "PK", "PAK", "586"}, 353 {"Panama", "Panama (le)", "PA", "PAN", "591"}, 354 {"Papua New Guinea", "Papouasie-Nouvelle-Guinée (la)", "PG", "PNG", "598"}, 355 {"Paraguay", "Paraguay (le)", "PY", "PRY", "600"}, 356 {"Peru", "Pérou (le)", "PE", "PER", "604"}, 357 {"Philippines (the)", "Philippines (les)", "PH", "PHL", "608"}, 358 {"Pitcairn", "Pitcairn", "PN", "PCN", "612"}, 359 {"Poland", "Pologne (la)", "PL", "POL", "616"}, 360 {"Portugal", "Portugal (le)", "PT", "PRT", "620"}, 361 {"Guinea-Bissau", "Guinée-Bissau (la)", "GW", "GNB", "624"}, 362 {"Timor-Leste", "Timor-Leste (le)", "TL", "TLS", "626"}, 363 {"Puerto Rico", "Porto Rico", "PR", "PRI", "630"}, 364 {"Qatar", "Qatar (le)", "QA", "QAT", "634"}, 365 {"Réunion", "Réunion (La)", "RE", "REU", "638"}, 366 {"Romania", "Roumanie (la)", "RO", "ROU", "642"}, 367 {"Russian Federation (the)", "Russie (la Fédération de)", "RU", "RUS", "643"}, 368 {"Rwanda", "Rwanda (le)", "RW", "RWA", "646"}, 369 {"Saint Barthélemy", "Saint-Barthélemy", "BL", "BLM", "652"}, 370 {"Saint Helena, Ascension and Tristan da Cunha", "Sainte-Hélène, Ascension et Tristan da Cunha", "SH", "SHN", "654"}, 371 {"Saint Kitts and Nevis", "Saint-Kitts-et-Nevis", "KN", "KNA", "659"}, 372 {"Anguilla", "Anguilla", "AI", "AIA", "660"}, 373 {"Saint Lucia", "Sainte-Lucie", "LC", "LCA", "662"}, 374 {"Saint Martin (French part)", "Saint-Martin (partie française)", "MF", "MAF", "663"}, 375 {"Saint Pierre and Miquelon", "Saint-Pierre-et-Miquelon", "PM", "SPM", "666"}, 376 {"Saint Vincent and the Grenadines", "Saint-Vincent-et-les Grenadines", "VC", "VCT", "670"}, 377 {"San Marino", "Saint-Marin", "SM", "SMR", "674"}, 378 {"Sao Tome and Principe", "Sao Tomé-et-Principe", "ST", "STP", "678"}, 379 {"Saudi Arabia", "Arabie saoudite (l')", "SA", "SAU", "682"}, 380 {"Senegal", "Sénégal (le)", "SN", "SEN", "686"}, 381 {"Serbia", "Serbie (la)", "RS", "SRB", "688"}, 382 {"Seychelles", "Seychelles (les)", "SC", "SYC", "690"}, 383 {"Sierra Leone", "Sierra Leone (la)", "SL", "SLE", "694"}, 384 {"Singapore", "Singapour", "SG", "SGP", "702"}, 385 {"Slovakia", "Slovaquie (la)", "SK", "SVK", "703"}, 386 {"Viet Nam", "Viet Nam (le)", "VN", "VNM", "704"}, 387 {"Slovenia", "Slovénie (la)", "SI", "SVN", "705"}, 388 {"Somalia", "Somalie (la)", "SO", "SOM", "706"}, 389 {"South Africa", "Afrique du Sud (l')", "ZA", "ZAF", "710"}, 390 {"Zimbabwe", "Zimbabwe (le)", "ZW", "ZWE", "716"}, 391 {"Spain", "Espagne (l')", "ES", "ESP", "724"}, 392 {"South Sudan", "Soudan du Sud (le)", "SS", "SSD", "728"}, 393 {"Sudan (the)", "Soudan (le)", "SD", "SDN", "729"}, 394 {"Western Sahara*", "Sahara occidental (le)*", "EH", "ESH", "732"}, 395 {"Suriname", "Suriname (le)", "SR", "SUR", "740"}, 396 {"Svalbard and Jan Mayen", "Svalbard et l'Île Jan Mayen (le)", "SJ", "SJM", "744"}, 397 {"Swaziland", "Swaziland (le)", "SZ", "SWZ", "748"}, 398 {"Sweden", "Suède (la)", "SE", "SWE", "752"}, 399 {"Switzerland", "Suisse (la)", "CH", "CHE", "756"}, 400 {"Syrian Arab Republic", "République arabe syrienne (la)", "SY", "SYR", "760"}, 401 {"Tajikistan", "Tadjikistan (le)", "TJ", "TJK", "762"}, 402 {"Thailand", "Thaïlande (la)", "TH", "THA", "764"}, 403 {"Togo", "Togo (le)", "TG", "TGO", "768"}, 404 {"Tokelau", "Tokelau (les)", "TK", "TKL", "772"}, 405 {"Tonga", "Tonga (les)", "TO", "TON", "776"}, 406 {"Trinidad and Tobago", "Trinité-et-Tobago (la)", "TT", "TTO", "780"}, 407 {"United Arab Emirates (the)", "Émirats arabes unis (les)", "AE", "ARE", "784"}, 408 {"Tunisia", "Tunisie (la)", "TN", "TUN", "788"}, 409 {"Turkey", "Turquie (la)", "TR", "TUR", "792"}, 410 {"Turkmenistan", "Turkménistan (le)", "TM", "TKM", "795"}, 411 {"Turks and Caicos Islands (the)", "Turks-et-Caïcos (les Îles)", "TC", "TCA", "796"}, 412 {"Tuvalu", "Tuvalu (les)", "TV", "TUV", "798"}, 413 {"Uganda", "Ouganda (l')", "UG", "UGA", "800"}, 414 {"Ukraine", "Ukraine (l')", "UA", "UKR", "804"}, 415 {"Macedonia (the former Yugoslav Republic of)", "Macédoine (l'ex‑République yougoslave de)", "MK", "MKD", "807"}, 416 {"Egypt", "Égypte (l')", "EG", "EGY", "818"}, 417 {"United Kingdom of Great Britain and Northern Ireland (the)", "Royaume-Uni de Grande-Bretagne et d'Irlande du Nord (le)", "GB", "GBR", "826"}, 418 {"Guernsey", "Guernesey", "GG", "GGY", "831"}, 419 {"Jersey", "Jersey", "JE", "JEY", "832"}, 420 {"Isle of Man", "Île de Man", "IM", "IMN", "833"}, 421 {"Tanzania, United Republic of", "Tanzanie, République-Unie de", "TZ", "TZA", "834"}, 422 {"United States of America (the)", "États-Unis d'Amérique (les)", "US", "USA", "840"}, 423 {"Virgin Islands (U.S.)", "Vierges des États-Unis (les Îles)", "VI", "VIR", "850"}, 424 {"Burkina Faso", "Burkina Faso (le)", "BF", "BFA", "854"}, 425 {"Uruguay", "Uruguay (l')", "UY", "URY", "858"}, 426 {"Uzbekistan", "Ouzbékistan (l')", "UZ", "UZB", "860"}, 427 {"Venezuela (Bolivarian Republic of)", "Venezuela (République bolivarienne du)", "VE", "VEN", "862"}, 428 {"Wallis and Futuna", "Wallis-et-Futuna", "WF", "WLF", "876"}, 429 {"Samoa", "Samoa (le)", "WS", "WSM", "882"}, 430 {"Yemen", "Yémen (le)", "YE", "YEM", "887"}, 431 {"Zambia", "Zambie (la)", "ZM", "ZMB", "894"}, 432 } 433 434 // ISO4217List is the list of ISO currency codes 435 var ISO4217List = []string{ 436 "AED", "AFN", "ALL", "AMD", "ANG", "AOA", "ARS", "AUD", "AWG", "AZN", 437 "BAM", "BBD", "BDT", "BGN", "BHD", "BIF", "BMD", "BND", "BOB", "BOV", "BRL", "BSD", "BTN", "BWP", "BYN", "BZD", 438 "CAD", "CDF", "CHE", "CHF", "CHW", "CLF", "CLP", "CNY", "COP", "COU", "CRC", "CUC", "CUP", "CVE", "CZK", 439 "DJF", "DKK", "DOP", "DZD", 440 "EGP", "ERN", "ETB", "EUR", 441 "FJD", "FKP", 442 "GBP", "GEL", "GHS", "GIP", "GMD", "GNF", "GTQ", "GYD", 443 "HKD", "HNL", "HRK", "HTG", "HUF", 444 "IDR", "ILS", "INR", "IQD", "IRR", "ISK", 445 "JMD", "JOD", "JPY", 446 "KES", "KGS", "KHR", "KMF", "KPW", "KRW", "KWD", "KYD", "KZT", 447 "LAK", "LBP", "LKR", "LRD", "LSL", "LYD", 448 "MAD", "MDL", "MGA", "MKD", "MMK", "MNT", "MOP", "MRO", "MUR", "MVR", "MWK", "MXN", "MXV", "MYR", "MZN", 449 "NAD", "NGN", "NIO", "NOK", "NPR", "NZD", 450 "OMR", 451 "PAB", "PEN", "PGK", "PHP", "PKR", "PLN", "PYG", 452 "QAR", 453 "RON", "RSD", "RUB", "RWF", 454 "SAR", "SBD", "SCR", "SDG", "SEK", "SGD", "SHP", "SLL", "SOS", "SRD", "SSP", "STD", "STN", "SVC", "SYP", "SZL", 455 "THB", "TJS", "TMT", "TND", "TOP", "TRY", "TTD", "TWD", "TZS", 456 "UAH", "UGX", "USD", "USN", "UYI", "UYU", "UYW", "UZS", 457 "VEF", "VES", "VND", "VUV", 458 "WST", 459 "XAF", "XAG", "XAU", "XBA", "XBB", "XBC", "XBD", "XCD", "XDR", "XOF", "XPD", "XPF", "XPT", "XSU", "XTS", "XUA", "XXX", 460 "YER", 461 "ZAR", "ZMW", "ZWL", 462 } 463 464 // ISO693Entry stores ISO language codes 465 type ISO693Entry struct { 466 Alpha3bCode string 467 Alpha2Code string 468 English string 469 } 470 471 // ISO693List based on http://data.okfn.org/data/core/language-codes/r/language-codes-3b2.json 472 var ISO693List = []ISO693Entry{ 473 {Alpha3bCode: "aar", Alpha2Code: "aa", English: "Afar"}, 474 {Alpha3bCode: "abk", Alpha2Code: "ab", English: "Abkhazian"}, 475 {Alpha3bCode: "afr", Alpha2Code: "af", English: "Afrikaans"}, 476 {Alpha3bCode: "aka", Alpha2Code: "ak", English: "Akan"}, 477 {Alpha3bCode: "alb", Alpha2Code: "sq", English: "Albanian"}, 478 {Alpha3bCode: "amh", Alpha2Code: "am", English: "Amharic"}, 479 {Alpha3bCode: "ara", Alpha2Code: "ar", English: "Arabic"}, 480 {Alpha3bCode: "arg", Alpha2Code: "an", English: "Aragonese"}, 481 {Alpha3bCode: "arm", Alpha2Code: "hy", English: "Armenian"}, 482 {Alpha3bCode: "asm", Alpha2Code: "as", English: "Assamese"}, 483 {Alpha3bCode: "ava", Alpha2Code: "av", English: "Avaric"}, 484 {Alpha3bCode: "ave", Alpha2Code: "ae", English: "Avestan"}, 485 {Alpha3bCode: "aym", Alpha2Code: "ay", English: "Aymara"}, 486 {Alpha3bCode: "aze", Alpha2Code: "az", English: "Azerbaijani"}, 487 {Alpha3bCode: "bak", Alpha2Code: "ba", English: "Bashkir"}, 488 {Alpha3bCode: "bam", Alpha2Code: "bm", English: "Bambara"}, 489 {Alpha3bCode: "baq", Alpha2Code: "eu", English: "Basque"}, 490 {Alpha3bCode: "bel", Alpha2Code: "be", English: "Belarusian"}, 491 {Alpha3bCode: "ben", Alpha2Code: "bn", English: "Bengali"}, 492 {Alpha3bCode: "bih", Alpha2Code: "bh", English: "Bihari languages"}, 493 {Alpha3bCode: "bis", Alpha2Code: "bi", English: "Bislama"}, 494 {Alpha3bCode: "bos", Alpha2Code: "bs", English: "Bosnian"}, 495 {Alpha3bCode: "bre", Alpha2Code: "br", English: "Breton"}, 496 {Alpha3bCode: "bul", Alpha2Code: "bg", English: "Bulgarian"}, 497 {Alpha3bCode: "bur", Alpha2Code: "my", English: "Burmese"}, 498 {Alpha3bCode: "cat", Alpha2Code: "ca", English: "Catalan; Valencian"}, 499 {Alpha3bCode: "cha", Alpha2Code: "ch", English: "Chamorro"}, 500 {Alpha3bCode: "che", Alpha2Code: "ce", English: "Chechen"}, 501 {Alpha3bCode: "chi", Alpha2Code: "zh", English: "Chinese"}, 502 {Alpha3bCode: "chu", Alpha2Code: "cu", English: "Church Slavic; Old Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavonic"}, 503 {Alpha3bCode: "chv", Alpha2Code: "cv", English: "Chuvash"}, 504 {Alpha3bCode: "cor", Alpha2Code: "kw", English: "Cornish"}, 505 {Alpha3bCode: "cos", Alpha2Code: "co", English: "Corsican"}, 506 {Alpha3bCode: "cre", Alpha2Code: "cr", English: "Cree"}, 507 {Alpha3bCode: "cze", Alpha2Code: "cs", English: "Czech"}, 508 {Alpha3bCode: "dan", Alpha2Code: "da", English: "Danish"}, 509 {Alpha3bCode: "div", Alpha2Code: "dv", English: "Divehi; Dhivehi; Maldivian"}, 510 {Alpha3bCode: "dut", Alpha2Code: "nl", English: "Dutch; Flemish"}, 511 {Alpha3bCode: "dzo", Alpha2Code: "dz", English: "Dzongkha"}, 512 {Alpha3bCode: "eng", Alpha2Code: "en", English: "English"}, 513 {Alpha3bCode: "epo", Alpha2Code: "eo", English: "Esperanto"}, 514 {Alpha3bCode: "est", Alpha2Code: "et", English: "Estonian"}, 515 {Alpha3bCode: "ewe", Alpha2Code: "ee", English: "Ewe"}, 516 {Alpha3bCode: "fao", Alpha2Code: "fo", English: "Faroese"}, 517 {Alpha3bCode: "fij", Alpha2Code: "fj", English: "Fijian"}, 518 {Alpha3bCode: "fin", Alpha2Code: "fi", English: "Finnish"}, 519 {Alpha3bCode: "fre", Alpha2Code: "fr", English: "French"}, 520 {Alpha3bCode: "fry", Alpha2Code: "fy", English: "Western Frisian"}, 521 {Alpha3bCode: "ful", Alpha2Code: "ff", English: "Fulah"}, 522 {Alpha3bCode: "geo", Alpha2Code: "ka", English: "Georgian"}, 523 {Alpha3bCode: "ger", Alpha2Code: "de", English: "German"}, 524 {Alpha3bCode: "gla", Alpha2Code: "gd", English: "Gaelic; Scottish Gaelic"}, 525 {Alpha3bCode: "gle", Alpha2Code: "ga", English: "Irish"}, 526 {Alpha3bCode: "glg", Alpha2Code: "gl", English: "Galician"}, 527 {Alpha3bCode: "glv", Alpha2Code: "gv", English: "Manx"}, 528 {Alpha3bCode: "gre", Alpha2Code: "el", English: "Greek, Modern (1453-)"}, 529 {Alpha3bCode: "grn", Alpha2Code: "gn", English: "Guarani"}, 530 {Alpha3bCode: "guj", Alpha2Code: "gu", English: "Gujarati"}, 531 {Alpha3bCode: "hat", Alpha2Code: "ht", English: "Haitian; Haitian Creole"}, 532 {Alpha3bCode: "hau", Alpha2Code: "ha", English: "Hausa"}, 533 {Alpha3bCode: "heb", Alpha2Code: "he", English: "Hebrew"}, 534 {Alpha3bCode: "her", Alpha2Code: "hz", English: "Herero"}, 535 {Alpha3bCode: "hin", Alpha2Code: "hi", English: "Hindi"}, 536 {Alpha3bCode: "hmo", Alpha2Code: "ho", English: "Hiri Motu"}, 537 {Alpha3bCode: "hrv", Alpha2Code: "hr", English: "Croatian"}, 538 {Alpha3bCode: "hun", Alpha2Code: "hu", English: "Hungarian"}, 539 {Alpha3bCode: "ibo", Alpha2Code: "ig", English: "Igbo"}, 540 {Alpha3bCode: "ice", Alpha2Code: "is", English: "Icelandic"}, 541 {Alpha3bCode: "ido", Alpha2Code: "io", English: "Ido"}, 542 {Alpha3bCode: "iii", Alpha2Code: "ii", English: "Sichuan Yi; Nuosu"}, 543 {Alpha3bCode: "iku", Alpha2Code: "iu", English: "Inuktitut"}, 544 {Alpha3bCode: "ile", Alpha2Code: "ie", English: "Interlingue; Occidental"}, 545 {Alpha3bCode: "ina", Alpha2Code: "ia", English: "Interlingua (International Auxiliary Language Association)"}, 546 {Alpha3bCode: "ind", Alpha2Code: "id", English: "Indonesian"}, 547 {Alpha3bCode: "ipk", Alpha2Code: "ik", English: "Inupiaq"}, 548 {Alpha3bCode: "ita", Alpha2Code: "it", English: "Italian"}, 549 {Alpha3bCode: "jav", Alpha2Code: "jv", English: "Javanese"}, 550 {Alpha3bCode: "jpn", Alpha2Code: "ja", English: "Japanese"}, 551 {Alpha3bCode: "kal", Alpha2Code: "kl", English: "Kalaallisut; Greenlandic"}, 552 {Alpha3bCode: "kan", Alpha2Code: "kn", English: "Kannada"}, 553 {Alpha3bCode: "kas", Alpha2Code: "ks", English: "Kashmiri"}, 554 {Alpha3bCode: "kau", Alpha2Code: "kr", English: "Kanuri"}, 555 {Alpha3bCode: "kaz", Alpha2Code: "kk", English: "Kazakh"}, 556 {Alpha3bCode: "khm", Alpha2Code: "km", English: "Central Khmer"}, 557 {Alpha3bCode: "kik", Alpha2Code: "ki", English: "Kikuyu; Gikuyu"}, 558 {Alpha3bCode: "kin", Alpha2Code: "rw", English: "Kinyarwanda"}, 559 {Alpha3bCode: "kir", Alpha2Code: "ky", English: "Kirghiz; Kyrgyz"}, 560 {Alpha3bCode: "kom", Alpha2Code: "kv", English: "Komi"}, 561 {Alpha3bCode: "kon", Alpha2Code: "kg", English: "Kongo"}, 562 {Alpha3bCode: "kor", Alpha2Code: "ko", English: "Korean"}, 563 {Alpha3bCode: "kua", Alpha2Code: "kj", English: "Kuanyama; Kwanyama"}, 564 {Alpha3bCode: "kur", Alpha2Code: "ku", English: "Kurdish"}, 565 {Alpha3bCode: "lao", Alpha2Code: "lo", English: "Lao"}, 566 {Alpha3bCode: "lat", Alpha2Code: "la", English: "Latin"}, 567 {Alpha3bCode: "lav", Alpha2Code: "lv", English: "Latvian"}, 568 {Alpha3bCode: "lim", Alpha2Code: "li", English: "Limburgan; Limburger; Limburgish"}, 569 {Alpha3bCode: "lin", Alpha2Code: "ln", English: "Lingala"}, 570 {Alpha3bCode: "lit", Alpha2Code: "lt", English: "Lithuanian"}, 571 {Alpha3bCode: "ltz", Alpha2Code: "lb", English: "Luxembourgish; Letzeburgesch"}, 572 {Alpha3bCode: "lub", Alpha2Code: "lu", English: "Luba-Katanga"}, 573 {Alpha3bCode: "lug", Alpha2Code: "lg", English: "Ganda"}, 574 {Alpha3bCode: "mac", Alpha2Code: "mk", English: "Macedonian"}, 575 {Alpha3bCode: "mah", Alpha2Code: "mh", English: "Marshallese"}, 576 {Alpha3bCode: "mal", Alpha2Code: "ml", English: "Malayalam"}, 577 {Alpha3bCode: "mao", Alpha2Code: "mi", English: "Maori"}, 578 {Alpha3bCode: "mar", Alpha2Code: "mr", English: "Marathi"}, 579 {Alpha3bCode: "may", Alpha2Code: "ms", English: "Malay"}, 580 {Alpha3bCode: "mlg", Alpha2Code: "mg", English: "Malagasy"}, 581 {Alpha3bCode: "mlt", Alpha2Code: "mt", English: "Maltese"}, 582 {Alpha3bCode: "mon", Alpha2Code: "mn", English: "Mongolian"}, 583 {Alpha3bCode: "nau", Alpha2Code: "na", English: "Nauru"}, 584 {Alpha3bCode: "nav", Alpha2Code: "nv", English: "Navajo; Navaho"}, 585 {Alpha3bCode: "nbl", Alpha2Code: "nr", English: "Ndebele, South; South Ndebele"}, 586 {Alpha3bCode: "nde", Alpha2Code: "nd", English: "Ndebele, North; North Ndebele"}, 587 {Alpha3bCode: "ndo", Alpha2Code: "ng", English: "Ndonga"}, 588 {Alpha3bCode: "nep", Alpha2Code: "ne", English: "Nepali"}, 589 {Alpha3bCode: "nno", Alpha2Code: "nn", English: "Norwegian Nynorsk; Nynorsk, Norwegian"}, 590 {Alpha3bCode: "nob", Alpha2Code: "nb", English: "Bokmål, Norwegian; Norwegian Bokmål"}, 591 {Alpha3bCode: "nor", Alpha2Code: "no", English: "Norwegian"}, 592 {Alpha3bCode: "nya", Alpha2Code: "ny", English: "Chichewa; Chewa; Nyanja"}, 593 {Alpha3bCode: "oci", Alpha2Code: "oc", English: "Occitan (post 1500); Provençal"}, 594 {Alpha3bCode: "oji", Alpha2Code: "oj", English: "Ojibwa"}, 595 {Alpha3bCode: "ori", Alpha2Code: "or", English: "Oriya"}, 596 {Alpha3bCode: "orm", Alpha2Code: "om", English: "Oromo"}, 597 {Alpha3bCode: "oss", Alpha2Code: "os", English: "Ossetian; Ossetic"}, 598 {Alpha3bCode: "pan", Alpha2Code: "pa", English: "Panjabi; Punjabi"}, 599 {Alpha3bCode: "per", Alpha2Code: "fa", English: "Persian"}, 600 {Alpha3bCode: "pli", Alpha2Code: "pi", English: "Pali"}, 601 {Alpha3bCode: "pol", Alpha2Code: "pl", English: "Polish"}, 602 {Alpha3bCode: "por", Alpha2Code: "pt", English: "Portuguese"}, 603 {Alpha3bCode: "pus", Alpha2Code: "ps", English: "Pushto; Pashto"}, 604 {Alpha3bCode: "que", Alpha2Code: "qu", English: "Quechua"}, 605 {Alpha3bCode: "roh", Alpha2Code: "rm", English: "Romansh"}, 606 {Alpha3bCode: "rum", Alpha2Code: "ro", English: "Romanian; Moldavian; Moldovan"}, 607 {Alpha3bCode: "run", Alpha2Code: "rn", English: "Rundi"}, 608 {Alpha3bCode: "rus", Alpha2Code: "ru", English: "Russian"}, 609 {Alpha3bCode: "sag", Alpha2Code: "sg", English: "Sango"}, 610 {Alpha3bCode: "san", Alpha2Code: "sa", English: "Sanskrit"}, 611 {Alpha3bCode: "sin", Alpha2Code: "si", English: "Sinhala; Sinhalese"}, 612 {Alpha3bCode: "slo", Alpha2Code: "sk", English: "Slovak"}, 613 {Alpha3bCode: "slv", Alpha2Code: "sl", English: "Slovenian"}, 614 {Alpha3bCode: "sme", Alpha2Code: "se", English: "Northern Sami"}, 615 {Alpha3bCode: "smo", Alpha2Code: "sm", English: "Samoan"}, 616 {Alpha3bCode: "sna", Alpha2Code: "sn", English: "Shona"}, 617 {Alpha3bCode: "snd", Alpha2Code: "sd", English: "Sindhi"}, 618 {Alpha3bCode: "som", Alpha2Code: "so", English: "Somali"}, 619 {Alpha3bCode: "sot", Alpha2Code: "st", English: "Sotho, Southern"}, 620 {Alpha3bCode: "spa", Alpha2Code: "es", English: "Spanish; Castilian"}, 621 {Alpha3bCode: "srd", Alpha2Code: "sc", English: "Sardinian"}, 622 {Alpha3bCode: "srp", Alpha2Code: "sr", English: "Serbian"}, 623 {Alpha3bCode: "ssw", Alpha2Code: "ss", English: "Swati"}, 624 {Alpha3bCode: "sun", Alpha2Code: "su", English: "Sundanese"}, 625 {Alpha3bCode: "swa", Alpha2Code: "sw", English: "Swahili"}, 626 {Alpha3bCode: "swe", Alpha2Code: "sv", English: "Swedish"}, 627 {Alpha3bCode: "tah", Alpha2Code: "ty", English: "Tahitian"}, 628 {Alpha3bCode: "tam", Alpha2Code: "ta", English: "Tamil"}, 629 {Alpha3bCode: "tat", Alpha2Code: "tt", English: "Tatar"}, 630 {Alpha3bCode: "tel", Alpha2Code: "te", English: "Telugu"}, 631 {Alpha3bCode: "tgk", Alpha2Code: "tg", English: "Tajik"}, 632 {Alpha3bCode: "tgl", Alpha2Code: "tl", English: "Tagalog"}, 633 {Alpha3bCode: "tha", Alpha2Code: "th", English: "Thai"}, 634 {Alpha3bCode: "tib", Alpha2Code: "bo", English: "Tibetan"}, 635 {Alpha3bCode: "tir", Alpha2Code: "ti", English: "Tigrinya"}, 636 {Alpha3bCode: "ton", Alpha2Code: "to", English: "Tonga (Tonga Islands)"}, 637 {Alpha3bCode: "tsn", Alpha2Code: "tn", English: "Tswana"}, 638 {Alpha3bCode: "tso", Alpha2Code: "ts", English: "Tsonga"}, 639 {Alpha3bCode: "tuk", Alpha2Code: "tk", English: "Turkmen"}, 640 {Alpha3bCode: "tur", Alpha2Code: "tr", English: "Turkish"}, 641 {Alpha3bCode: "twi", Alpha2Code: "tw", English: "Twi"}, 642 {Alpha3bCode: "uig", Alpha2Code: "ug", English: "Uighur; Uyghur"}, 643 {Alpha3bCode: "ukr", Alpha2Code: "uk", English: "Ukrainian"}, 644 {Alpha3bCode: "urd", Alpha2Code: "ur", English: "Urdu"}, 645 {Alpha3bCode: "uzb", Alpha2Code: "uz", English: "Uzbek"}, 646 {Alpha3bCode: "ven", Alpha2Code: "ve", English: "Venda"}, 647 {Alpha3bCode: "vie", Alpha2Code: "vi", English: "Vietnamese"}, 648 {Alpha3bCode: "vol", Alpha2Code: "vo", English: "Volapük"}, 649 {Alpha3bCode: "wel", Alpha2Code: "cy", English: "Welsh"}, 650 {Alpha3bCode: "wln", Alpha2Code: "wa", English: "Walloon"}, 651 {Alpha3bCode: "wol", Alpha2Code: "wo", English: "Wolof"}, 652 {Alpha3bCode: "xho", Alpha2Code: "xh", English: "Xhosa"}, 653 {Alpha3bCode: "yid", Alpha2Code: "yi", English: "Yiddish"}, 654 {Alpha3bCode: "yor", Alpha2Code: "yo", English: "Yoruba"}, 655 {Alpha3bCode: "zha", Alpha2Code: "za", English: "Zhuang; Chuang"}, 656 {Alpha3bCode: "zul", Alpha2Code: "zu", English: "Zulu"}, 657 }