parser

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSetup = errors.New("could not load libpostal")

Functions

func Setup

func Setup() error

Types

type ParsedComponent

type ParsedComponent struct {
	Label string `json:"label"`
	Value string `json:"value"`
}

func ParseAddress

func ParseAddress(address string) []ParsedComponent

func ParseAddressOptions

func ParseAddressOptions(address string, options ParserOptions) []ParsedComponent

type ParserOptions

type ParserOptions struct {
	Language string
	Country  string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL