Skip to content

jfoster/go-ves

Repository files navigation

go-ves

Docs

go.dev reference

Get

go get github.com/jfoster/go-ves

Import

import (
	"github.com/jfoster/go-ves"
)

Example

key := os.Getenv("API_KEY")
reg := os.Getenv("REG_NUM")

c := ves.NewClient(ves.SetKey(key))

v, err := c.Vehicles.GetVehicle(reg)
if err != nil {
    log.Fatal(err)
}

json.NewEncoder(os.Stdout).Encode(v)