mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-15 04:24:44 +00:00
18 lines
355 B
Go
Executable File
18 lines
355 B
Go
Executable File
package example
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"github.com/micro/services/clients/go/vehicle"
|
|
)
|
|
|
|
// Lookup a UK vehicle by it's registration number
|
|
func LookupVehicle() {
|
|
vehicleService := vehicle.NewVehicleService(os.Getenv("MICRO_API_TOKEN"))
|
|
rsp, err := vehicleService.Lookup(&vehicle.LookupRequest{
|
|
Registration: "LC60OTA",
|
|
})
|
|
fmt.Println(rsp, err)
|
|
}
|