Documentation ¶
Index ¶
Constants ¶
View Source
const ( GOOGLE_ADDRESS_URL string = "https://chromium-i18n.appspot.com/ssl-address" NUM_WORKERS int = 25 )
Variables ¶
View Source
var ( ADDRESS_FORMAT_REGEX = regexp.MustCompile(`%[NOADCSZX]`) REMOVE_LANG_REGEX = regexp.MustCompile(`--.*`) POST_PREFIX_FIXES = map[string]string{ "PR": "PR ", } LANGUAGE_OVERRIDES = map[string]string{ "AQ": "en", "AS": "en", "BQ": "nl", "BV": "nb", "CW": "nl", "DJ": "fr", "GS": "en", "HM": "en", "MV": "en", "PG": "en", "PW": "en", "TK": "en", "VU": "fr", "WS": "en", } LOCAL_NAME_OVERRIDES = map[string]string{ "TV": "Tuvalu", } )
Functions ¶
func DecodeCountries ¶
Types ¶
type Country ¶
type Country struct { ID string Name string DefaultLanguage string PostCodePrefix string PostCodeRegex postCodeRegex Format string LatinizedFormat string AdministrativeAreaNameType libaddress.FieldName LocalityNameType libaddress.FieldName DependentLocalityNameType libaddress.FieldName PostCodeNameType libaddress.FieldName AllowedFields map[libaddress.Field]struct{} RequiredFields map[libaddress.Field]struct{} Upper map[libaddress.Field]struct{} AdministrativeAreas map[string]administrativeAreaSlice }
Click to show internal directories.
Click to hide internal directories.