Documentation ¶
Index ¶
- Constants
- func CountriesByAlpha2CodeErr(dialCode DialCode) (result []country.Alpha2Code, err error)
- func CountriesByDialCode(dialCode DialCode) (result []country.Alpha2Code, ok bool)
- func CountriesByDialCodeStr(dialCode string) ([]country.Alpha2Code, bool)
- func CountriesByDialCodeStrErr(dialCode string) ([]country.Alpha2Code, error)
- type DialCode
- type Number
Constants ¶
const ( // 886 is 'TW' country dial code TW = DialCode("886") // 93 is 'AF' country dial code AF = DialCode("93") // 355 is 'AL' country dial code AL = DialCode("355") // 213 is 'DZ' country dial code DZ = DialCode("213") // 1684 is 'AS' country dial code AS = DialCode("1684") // 376 is 'AD' country dial code AD = DialCode("376") // 244 is 'AO' country dial code AO = DialCode("244") // 1264 is 'AI' country dial code AI = DialCode("1264") // 672 is 'AQ' country dial code AQ = DialCode("672") // 1268 is 'AG' country dial code AG = DialCode("1268") // 54 is 'AR' country dial code AR = DialCode("54") // 374 is 'AM' country dial code AM = DialCode("374") // 297 is 'AW' country dial code AW = DialCode("297") // 61 is 'AU' country dial code AU = DialCode("61") // 43 is 'AT' country dial code AT = DialCode("43") // 994 is 'AZ' country dial code AZ = DialCode("994") // 1242 is 'BS' country dial code BS = DialCode("1242") // 973 is 'BH' country dial code BH = DialCode("973") // 880 is 'BD' country dial code BD = DialCode("880") // 1246 is 'BB' country dial code BB = DialCode("1246") // 375 is 'BY' country dial code BY = DialCode("375") // 32 is 'BE' country dial code BE = DialCode("32") // 501 is 'BZ' country dial code BZ = DialCode("501") // 229 is 'BJ' country dial code BJ = DialCode("229") // 1441 is 'BM' country dial code BM = DialCode("1441") // 975 is 'BT' country dial code BT = DialCode("975") // 591 is 'BO' country dial code BO = DialCode("591") // 599 is 'BQ' country dial code BQ = DialCode("599") // 387 is 'BA' country dial code BA = DialCode("387") // 267 is 'BW' country dial code BW = DialCode("267") // 47 is 'BV' country dial code BV = DialCode("47") // 55 is 'BR' country dial code BR = DialCode("55") // 246 is 'IO' country dial code IO = DialCode("246") // 1284 is 'VG' country dial code VG = DialCode("1284") // 673 is 'BN' country dial code BN = DialCode("673") // 359 is 'BG' country dial code BG = DialCode("359") // 226 is 'BF' country dial code BF = DialCode("226") // 257 is 'BI' country dial code BI = DialCode("257") // 238 is 'CV' country dial code CV = DialCode("238") // 855 is 'KH' country dial code KH = DialCode("855") // 237 is 'CM' country dial code CM = DialCode("237") // 1 is 'CA' country dial code CA = DialCode("1") // 1345 is 'KY' country dial code KY = DialCode("1345") // 236 is 'CF' country dial code CF = DialCode("236") // 235 is 'TD' country dial code TD = DialCode("235") // 56 is 'CL' country dial code CL = DialCode("56") // 86 is 'CN' country dial code CN = DialCode("86") // 852 is 'HK' country dial code HK = DialCode("852") // 853 is 'MO' country dial code MO = DialCode("853") // 61 is 'CX' country dial code CX = DialCode("61") // 61 is 'CC' country dial code CC = DialCode("61") // 57 is 'CO' country dial code CO = DialCode("57") // 269 is 'KM' country dial code KM = DialCode("269") // 242 is 'CG' country dial code CG = DialCode("242") // 682 is 'CK' country dial code CK = DialCode("682") // 506 is 'CR' country dial code CR = DialCode("506") // 385 is 'HR' country dial code HR = DialCode("385") // 53 is 'CU' country dial code CU = DialCode("53") // 599 is 'CW' country dial code CW = DialCode("599") // 357 is 'CY' country dial code CY = DialCode("357") // 420 is 'CZ' country dial code CZ = DialCode("420") // 225 is 'CI' country dial code CI = DialCode("225") // 850 is 'KP' country dial code KP = DialCode("850") // 243 is 'CD' country dial code CD = DialCode("243") // 45 is 'DK' country dial code DK = DialCode("45") // 253 is 'DJ' country dial code DJ = DialCode("253") // 1767 is 'DM' country dial code DM = DialCode("1767") // 1829 is 'DO' country dial code DO = DialCode("1829") // 593 is 'EC' country dial code EC = DialCode("593") // 20 is 'EG' country dial code EG = DialCode("20") // 503 is 'SV' country dial code SV = DialCode("503") // 240 is 'GQ' country dial code GQ = DialCode("240") // 291 is 'ER' country dial code ER = DialCode("291") // 372 is 'EE' country dial code EE = DialCode("372") // 268 is 'SZ' country dial code SZ = DialCode("268") // 251 is 'ET' country dial code ET = DialCode("251") // 500 is 'FK' country dial code FK = DialCode("500") // 298 is 'FO' country dial code FO = DialCode("298") // 679 is 'FJ' country dial code FJ = DialCode("679") // 358 is 'FI' country dial code FI = DialCode("358") // 33 is 'FR' country dial code FR = DialCode("33") // 594 is 'GF' country dial code GF = DialCode("594") // 689 is 'PF' country dial code PF = DialCode("689") // 262 is 'TF' country dial code TF = DialCode("262") // 241 is 'GA' country dial code GA = DialCode("241") // 220 is 'GM' country dial code GM = DialCode("220") // 995 is 'GE' country dial code GE = DialCode("995") // 49 is 'DE' country dial code DE = DialCode("49") // 233 is 'GH' country dial code GH = DialCode("233") // 350 is 'GI' country dial code GI = DialCode("350") // 30 is 'GR' country dial code GR = DialCode("30") // 299 is 'GL' country dial code GL = DialCode("299") // 1473 is 'GD' country dial code GD = DialCode("1473") // 590 is 'GP' country dial code GP = DialCode("590") // 1671 is 'GU' country dial code GU = DialCode("1671") // 502 is 'GT' country dial code GT = DialCode("502") // 44 is 'GG' country dial code GG = DialCode("44") // 224 is 'GN' country dial code GN = DialCode("224") // 245 is 'GW' country dial code GW = DialCode("245") // 592 is 'GY' country dial code GY = DialCode("592") // 509 is 'HT' country dial code HT = DialCode("509") // 672 is 'HM' country dial code HM = DialCode("672") // 3906 is 'VA' country dial code VA = DialCode("3906") // 504 is 'HN' country dial code HN = DialCode("504") // 36 is 'HU' country dial code HU = DialCode("36") // 354 is 'IS' country dial code IS = DialCode("354") // 91 is 'IN' country dial code IN = DialCode("91") // 62 is 'ID' country dial code ID = DialCode("62") // 98 is 'IR' country dial code IR = DialCode("98") // 964 is 'IQ' country dial code IQ = DialCode("964") // 353 is 'IE' country dial code IE = DialCode("353") // 44 is 'IM' country dial code IM = DialCode("44") // 972 is 'IL' country dial code IL = DialCode("972") // 39 is 'IT' country dial code IT = DialCode("39") // 1876 is 'JM' country dial code JM = DialCode("1876") // 81 is 'JP' country dial code JP = DialCode("81") // 44 is 'JE' country dial code JE = DialCode("44") // 962 is 'JO' country dial code JO = DialCode("962") // 7 is 'KZ' country dial code KZ = DialCode("7") // 254 is 'KE' country dial code KE = DialCode("254") // 686 is 'KI' country dial code KI = DialCode("686") // 965 is 'KW' country dial code KW = DialCode("965") // 996 is 'KG' country dial code KG = DialCode("996") // 856 is 'LA' country dial code LA = DialCode("856") // 371 is 'LV' country dial code LV = DialCode("371") // 961 is 'LB' country dial code LB = DialCode("961") // 266 is 'LS' country dial code LS = DialCode("266") // 231 is 'LR' country dial code LR = DialCode("231") // 218 is 'LY' country dial code LY = DialCode("218") // 423 is 'LI' country dial code LI = DialCode("423") // 370 is 'LT' country dial code LT = DialCode("370") // 352 is 'LU' country dial code LU = DialCode("352") // 261 is 'MG' country dial code MG = DialCode("261") // 265 is 'MW' country dial code MW = DialCode("265") // 60 is 'MY' country dial code MY = DialCode("60") // 960 is 'MV' country dial code MV = DialCode("960") // 223 is 'ML' country dial code ML = DialCode("223") // 356 is 'MT' country dial code MT = DialCode("356") // 692 is 'MH' country dial code MH = DialCode("692") // 596 is 'MQ' country dial code MQ = DialCode("596") // 222 is 'MR' country dial code MR = DialCode("222") // 230 is 'MU' country dial code MU = DialCode("230") // 262 is 'YT' country dial code YT = DialCode("262") // 52 is 'MX' country dial code MX = DialCode("52") // 691 is 'FM' country dial code FM = DialCode("691") // 377 is 'MC' country dial code MC = DialCode("377") // 976 is 'MN' country dial code MN = DialCode("976") // 382 is 'ME' country dial code ME = DialCode("382") // 1664 is 'MS' country dial code MS = DialCode("1664") // 212 is 'MA' country dial code MA = DialCode("212") // 258 is 'MZ' country dial code MZ = DialCode("258") // 95 is 'MM' country dial code MM = DialCode("95") // 264 is 'NA' country dial code NA = DialCode("264") // 674 is 'NR' country dial code NR = DialCode("674") // 977 is 'NP' country dial code NP = DialCode("977") // 31 is 'NL' country dial code NL = DialCode("31") // 687 is 'NC' country dial code NC = DialCode("687") // 64 is 'NZ' country dial code NZ = DialCode("64") // 505 is 'NI' country dial code NI = DialCode("505") // 227 is 'NE' country dial code NE = DialCode("227") // 234 is 'NG' country dial code NG = DialCode("234") // 683 is 'NU' country dial code NU = DialCode("683") // 672 is 'NF' country dial code NF = DialCode("672") // 1670 is 'MP' country dial code MP = DialCode("1670") // 47 is 'NO' country dial code NO = DialCode("47") // 968 is 'OM' country dial code OM = DialCode("968") // 92 is 'PK' country dial code PK = DialCode("92") // 680 is 'PW' country dial code PW = DialCode("680") // 507 is 'PA' country dial code PA = DialCode("507") // 675 is 'PG' country dial code PG = DialCode("675") // 595 is 'PY' country dial code PY = DialCode("595") // 51 is 'PE' country dial code PE = DialCode("51") // 63 is 'PH' country dial code PH = DialCode("63") // 870 is 'PN' country dial code PN = DialCode("870") // 48 is 'PL' country dial code PL = DialCode("48") // 351 is 'PT' country dial code PT = DialCode("351") // 1 is 'PR' country dial code PR = DialCode("1") // 974 is 'QA' country dial code QA = DialCode("974") // 82 is 'KR' country dial code KR = DialCode("82") // 373 is 'MD' country dial code MD = DialCode("373") // 40 is 'RO' country dial code RO = DialCode("40") // 7 is 'RU' country dial code RU = DialCode("7") // 250 is 'RW' country dial code RW = DialCode("250") // 262 is 'RE' country dial code RE = DialCode("262") // 590 is 'BL' country dial code BL = DialCode("590") // 290 is 'SH' country dial code SH = DialCode("290") // 1869 is 'KN' country dial code KN = DialCode("1869") // 1758 is 'LC' country dial code LC = DialCode("1758") // 590 is 'MF' country dial code MF = DialCode("590") // 508 is 'PM' country dial code PM = DialCode("508") // 1784 is 'VC' country dial code VC = DialCode("1784") // 685 is 'WS' country dial code WS = DialCode("685") // 378 is 'SM' country dial code SM = DialCode("378") // 239 is 'ST' country dial code ST = DialCode("239") // 966 is 'SA' country dial code SA = DialCode("966") // 221 is 'SN' country dial code SN = DialCode("221") // 381 is 'RS' country dial code RS = DialCode("381") // 248 is 'SC' country dial code SC = DialCode("248") // 232 is 'SL' country dial code SL = DialCode("232") // 65 is 'SG' country dial code SG = DialCode("65") // 1721 is 'SX' country dial code SX = DialCode("1721") // 421 is 'SK' country dial code SK = DialCode("421") // 386 is 'SI' country dial code SI = DialCode("386") // 677 is 'SB' country dial code SB = DialCode("677") // 252 is 'SO' country dial code SO = DialCode("252") // 27 is 'ZA' country dial code ZA = DialCode("27") // 500 is 'GS' country dial code GS = DialCode("500") // 211 is 'SS' country dial code SS = DialCode("211") // 34 is 'ES' country dial code ES = DialCode("34") // 94 is 'LK' country dial code LK = DialCode("94") // 970 is 'PS' country dial code PS = DialCode("970") // 249 is 'SD' country dial code SD = DialCode("249") // 597 is 'SR' country dial code SR = DialCode("597") // 47 is 'SJ' country dial code SJ = DialCode("47") // 46 is 'SE' country dial code SE = DialCode("46") // 41 is 'CH' country dial code CH = DialCode("41") // 963 is 'SY' country dial code SY = DialCode("963") // 992 is 'TJ' country dial code TJ = DialCode("992") // 66 is 'TH' country dial code TH = DialCode("66") // 389 is 'MK' country dial code MK = DialCode("389") // 670 is 'TL' country dial code TL = DialCode("670") // 228 is 'TG' country dial code TG = DialCode("228") // 690 is 'TK' country dial code TK = DialCode("690") // 676 is 'TO' country dial code TO = DialCode("676") // 1868 is 'TT' country dial code TT = DialCode("1868") // 216 is 'TN' country dial code TN = DialCode("216") // 90 is 'TR' country dial code TR = DialCode("90") // 993 is 'TM' country dial code TM = DialCode("993") // 1649 is 'TC' country dial code TC = DialCode("1649") // 688 is 'TV' country dial code TV = DialCode("688") // 256 is 'UG' country dial code UG = DialCode("256") // 380 is 'UA' country dial code UA = DialCode("380") // 971 is 'AE' country dial code AE = DialCode("971") // 44 is 'GB' country dial code GB = DialCode("44") // 255 is 'TZ' country dial code TZ = DialCode("255") // 1340 is 'VI' country dial code VI = DialCode("1340") // 1 is 'US' country dial code US = DialCode("1") // 598 is 'UY' country dial code UY = DialCode("598") // 998 is 'UZ' country dial code UZ = DialCode("998") // 678 is 'VU' country dial code VU = DialCode("678") // 58 is 'VE' country dial code VE = DialCode("58") // 84 is 'VN' country dial code VN = DialCode("84") // 681 is 'WF' country dial code WF = DialCode("681") // 212 is 'EH' country dial code EH = DialCode("212") // 967 is 'YE' country dial code YE = DialCode("967") // 260 is 'ZM' country dial code ZM = DialCode("260") // 263 is 'ZW' country dial code ZW = DialCode("263") // 358 is 'AX' country dial code AX = DialCode("358") )
Variables ¶
This section is empty.
Functions ¶
func CountriesByAlpha2CodeErr ¶
func CountriesByAlpha2CodeErr(dialCode DialCode) (result []country.Alpha2Code, err error)
CountriesByAlpha2CodeErr lookup for country alpha-2 code by dial country code with error return type
func CountriesByDialCode ¶
func CountriesByDialCode(dialCode DialCode) (result []country.Alpha2Code, ok bool)
CountriesByDialCode lookup for country alpha-2 code by dial country code
func CountriesByDialCodeStr ¶
func CountriesByDialCodeStr(dialCode string) ([]country.Alpha2Code, bool)
CountriesByDialCodeStr lookup for country alpha-2 code by dial country code string
func CountriesByDialCodeStrErr ¶
func CountriesByDialCodeStrErr(dialCode string) ([]country.Alpha2Code, error)
CountriesByDialCodeStrErr lookup for country alpha-2 code by dial country code string with error return type
Types ¶
type DialCode ¶
type DialCode string
DialCode represents dial country code
func DialByAlpha2Code ¶
func DialByAlpha2Code(countryCode country.Alpha2Code) (result DialCode, ok bool)
DialByAlpha2Code lookup for dial country code by alpha-2 country code
func DialByAlpha2CodeErr ¶
func DialByAlpha2CodeErr(countryCode country.Alpha2Code) (result DialCode, err error)
DialByAlpha2CodeErr lookup for dial country code by alpha-2 code with error return type
func DialByAlpha2CodeStr ¶
DialByAlpha2CodeStr lookup for dial country code by alpha-2 country code string
func DialByAlpha2CodeStrErr ¶
DialByAlpha2CodeStrErr lookup for dial country code by alpha-2 country code string with error return type
func (*DialCode) UnmarshalJSON ¶
UnmarshalJSON unmarshall implementation for dial country code