From 23dd8f4a27de640d4f1cb85c5794799d53af9237 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Wed, 12 Feb 2025 23:43:52 +0100 Subject: [golang] refactor ships api --- golang/pkg/model/ship.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'golang/pkg/model') diff --git a/golang/pkg/model/ship.go b/golang/pkg/model/ship.go index 549f09e..73244d4 100644 --- a/golang/pkg/model/ship.go +++ b/golang/pkg/model/ship.go @@ -1,15 +1,15 @@ package model type Ship struct { - Cargo Cargo `json:"cargo"` - Cooldown Cooldown `json:"cooldown"` + Cargo *Cargo `json:"cargo"` + Cooldown *Cooldown `json:"cooldown"` //// crew //// engine //// frame - Fuel Fuel `json:"fuel"` + Fuel *Fuel `json:"fuel"` //// modules //// mounts - Nav Nav `json:"nav"` + Nav *Nav `json:"nav"` //// reactor //registration: Registration; Symbol string `json:"symbol"` -- cgit v1.2.3