Documentation
¶
Overview ¶
golang-address parses and validates US addresses according to USPS standards.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CardinalDirectionAbbreviations map[string]string = map[string]string{
"north": "n",
"n": "n",
"northwest": "nw",
"nw": "nw",
"northeast": "ne",
"ne": "ne",
"south": "s",
"s": "s",
"southwest": "sw",
"sw": "sw",
"southeast": "se",
"se": "se",
"east": "e",
"e": "e",
"west": "w",
"w": "w",
}
View Source
var NumberRequired []string = []string{
"po box",
"rr",
"county road",
"cr",
}
View Source
var Pairs map[string]string = map[string]string{
"po": "box",
"county": "road",
}
View Source
var RuralBoxes map[string]string = map[string]string{
"cr": "county road",
"county road": "county road",
"rr": "rr",
"po box": "po box",
}
View Source
var StreetTypeAbbreviations map[string]string = map[string]string{}/* 507 elements not displayed */
http://pe.usps.gov/text/pub28/28apc_002.htm Include a key that matches the value (ex; "avn": "avn") to make validating valid strings easy. If these change, pull requests are welcome!
View Source
var SuiteTypeAbbreviations map[string]string = map[string]string{
"apartment": "apt",
"#": "apt",
"apt": "apt",
"building": "bldg",
"bldg": "bldg",
"floor": "fl",
"fl": "fl",
"suite": "ste",
"ste": "ste",
"unit": "unit",
"room": "rm",
"rm": "rm",
"department": "dept",
"dept": "dept",
"box": "box",
"lot": "lot",
}
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.