Go
ActiveStdlib net/http, zero runtime dependencies. Functional options, typed errors, retry-with-jitter. Go 1.22+.
SET UP
Install
go get github.com/postio-uk/postio-go
EXAMPLE
30-second example
go
package main import ( "context" "fmt" "log" "github.com/postio-uk/postio-go" ) func main() { c, err := postio.NewClient(postio.WithAPIKey("pk_…")) if err != nil { log.Fatal(err) } res, err := c.Address.Search(context.Background(), &postio.SearchParams{ Q: "57 wimpole street", }) if err != nil { log.Fatal(err) } fmt.Println(res.Results[0].Suggestion) }
RELATED