[golang] simplified the api design some more
This commit is contained in:
parent
860984057d
commit
4069b524b2
7 changed files with 56 additions and 86 deletions
|
@ -84,9 +84,5 @@ func run(
|
|||
slog.Info("agent", "agent", agent, "err", err)
|
||||
// ----- Get ships ---------------------------------------------------------
|
||||
ships, err := client.MyShips()
|
||||
err = client.Dock(&ships[0])
|
||||
slog.Info("dock", "ship", ships[0], "err", err)
|
||||
err = client.Orbit(&ships[0])
|
||||
slog.Info("orbit", "ship", ships[0], "err", err)
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue