Minor refactor to move name to top of attributes class

This commit is contained in:
Marc Di Luzio 2020-06-26 18:24:03 +01:00
parent 7ee340e976
commit a84709564c

View file

@ -7,15 +7,15 @@ import (
// RoverAttributes contains attributes of a rover
type RoverAttributes struct {
// Name of this rover
Name string `json:"name"`
// Speed represents the Speed that the rover will move per second
Speed int `json:"speed"`
// Range represents the distance the unit's radar can see
Range int `json:"range"`
// Name of this rover
Name string `json:"name"`
// Capacity represents the maximum number of items the rover can carry
Capacity int `json:"capacity"`
}