From 860984057d496999949f7b5680997a25b6c660c3 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Wed, 29 May 2024 23:08:24 +0200 Subject: [golang] added ships first api calls --- golang/pkg/model/route.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 golang/pkg/model/route.go (limited to 'golang/pkg/model/route.go') diff --git a/golang/pkg/model/route.go b/golang/pkg/model/route.go new file mode 100644 index 0000000..0533e61 --- /dev/null +++ b/golang/pkg/model/route.go @@ -0,0 +1,17 @@ +package model + +import "time" + +type Route struct { + Arrival time.Time `json:"arrival"` + DepartureTime time.Time `json:"departureTime"` + Destination RouteEndpoint `json:"destination"` +} + +type RouteEndpoint struct { + Type string `json:"type"` + Symbol string `json:"symbol"` + SystemSymbol string `json:"systemSymbol"` + X int `json:"x"` + Y int `json:"y"` +} -- cgit v1.2.3