summaryrefslogtreecommitdiff
path: root/golang/pkg/model/route.go
diff options
context:
space:
mode:
authorJulien Dessaux2025-02-12 23:55:18 +0100
committerJulien Dessaux2025-02-12 23:55:18 +0100
commit01263017fcd03fa9560ddb8a5013fdf786c7d609 (patch)
tree0179ae4f3d013f26f49182aecef65febb1fd56dc /golang/pkg/model/route.go
parent[golang] refactor ships api (diff)
downloadspacetraders-01263017fcd03fa9560ddb8a5013fdf786c7d609.tar.gz
spacetraders-01263017fcd03fa9560ddb8a5013fdf786c7d609.tar.bz2
spacetraders-01263017fcd03fa9560ddb8a5013fdf786c7d609.zip
[golang] implement ship refueling
Diffstat (limited to 'golang/pkg/model/route.go')
-rw-r--r--golang/pkg/model/route.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/golang/pkg/model/route.go b/golang/pkg/model/route.go
index 0533e61..0d104b2 100644
--- a/golang/pkg/model/route.go
+++ b/golang/pkg/model/route.go
@@ -3,9 +3,9 @@ package model
import "time"
type Route struct {
- Arrival time.Time `json:"arrival"`
- DepartureTime time.Time `json:"departureTime"`
- Destination RouteEndpoint `json:"destination"`
+ Arrival time.Time `json:"arrival"`
+ DepartureTime time.Time `json:"departureTime"`
+ Destination *RouteEndpoint `json:"destination"`
}
type RouteEndpoint struct {