Skip to content

labstack/labstack-go

Repository files navigation

Go Client

Installation

go get github.com/labstack/labstack-go

Quick Start

Sign up to get an API key

Create a file app.go with the following content:

package main

import (
	"fmt"

	"github.com/labstack/labstack-go"
)

func main() {
  client := labstack.NewClient("<API_KEY>")
  geocode := client.Geocode()
  res, err := geocode.Address("eiffel tower")
  if err != nil {
    fmt.Println(err)
  } else {
    fmt.Printf("%+v", res)
  }
}

From terminal run your app:

go run app.go