Minor refactor to move name to top of attributes class
This commit is contained in:
parent
7ee340e976
commit
a84709564c
1 changed files with 3 additions and 3 deletions
|
@ -7,15 +7,15 @@ import (
|
||||||
|
|
||||||
// RoverAttributes contains attributes of a rover
|
// RoverAttributes contains attributes of a rover
|
||||||
type RoverAttributes struct {
|
type RoverAttributes struct {
|
||||||
|
// Name of this rover
|
||||||
|
Name string `json:"name"`
|
||||||
|
|
||||||
// Speed represents the Speed that the rover will move per second
|
// Speed represents the Speed that the rover will move per second
|
||||||
Speed int `json:"speed"`
|
Speed int `json:"speed"`
|
||||||
|
|
||||||
// Range represents the distance the unit's radar can see
|
// Range represents the distance the unit's radar can see
|
||||||
Range int `json:"range"`
|
Range int `json:"range"`
|
||||||
|
|
||||||
// Name of this rover
|
|
||||||
Name string `json:"name"`
|
|
||||||
|
|
||||||
// Capacity represents the maximum number of items the rover can carry
|
// Capacity represents the maximum number of items the rover can carry
|
||||||
Capacity int `json:"capacity"`
|
Capacity int `json:"capacity"`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue