Golang client for the GOV.UK DVLA Vehicle Enquiry API v1.1.0
go get github.com/jfoster/go-ves
import (
"github.com/jfoster/go-ves"
)
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)