All integrations·Server SDKs

Go

Active

Stdlib net/http, zero runtime dependencies. Functional options, typed errors, retry-with-jitter. Go 1.22+.

Install

go get github.com/postio-uk/postio-go

30-second example

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)
}