Refactor rover attributes to add a name

This commit is contained in:
Marc Di Luzio 2020-06-06 16:52:30 +01:00
parent db38ad6091
commit 5e1f9b0d31
10 changed files with 43 additions and 72 deletions

View file

@ -134,7 +134,7 @@ func InnerMain(command string) error {
return fmt.Errorf("Server returned failure: %s", response.Error)
} else {
fmt.Printf("Spawned at position %+v\n", response.Position)
fmt.Printf("Spawned rover with attributes %+v\n", response.Attributes)
}
case "move":
@ -184,7 +184,7 @@ func InnerMain(command string) error {
return fmt.Errorf("Server returned failure: %s", response.Error)
} else {
fmt.Printf("position: %v\n", response.Position)
fmt.Printf("attributes: %v\n", response.Attributes)
}
default: