initial: addressex initial implemmentation
This commit is contained in:
5
go/go.mod
Normal file
5
go/go.mod
Normal file
@@ -0,0 +1,5 @@
|
||||
module joaodubas.dev/addressex
|
||||
|
||||
go 1.21.6
|
||||
|
||||
require github.com/openvenues/gopostal v0.0.0-20171226154602-e0184512a45d // indirect
|
2
go/go.sum
Normal file
2
go/go.sum
Normal file
@@ -0,0 +1,2 @@
|
||||
github.com/openvenues/gopostal v0.0.0-20171226154602-e0184512a45d h1:KJ+N55d9zLN8fTg3NchLdmmAmPieXC5E6UNJ8zFFttU=
|
||||
github.com/openvenues/gopostal v0.0.0-20171226154602-e0184512a45d/go.mod h1:Ycrd7XnwQdumHzpB/6WEa85B4WNdbLC6Wz4FAQNkaV0=
|
12
go/main.go
Normal file
12
go/main.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
parser "github.com/openvenues/gopostal/parser"
|
||||
)
|
||||
|
||||
func main() {
|
||||
addressComponents := parser.ParseAddress("rua pedroso xavier 277, apto 51 torre 2. vila albertina, 02732-020, são paulo, sp, brasil")
|
||||
fmt.Println(addressComponents)
|
||||
}
|
Reference in New Issue
Block a user