1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
package agent import "git.adyxax.org/adyxax/spacetraders/golang/pkg/model" type shipError struct { err error ship *model.Ship } func (a *agent) sendShipError(err error, ship *model.Ship) { a.channel <- shipError{ err: err, ship: ship, } }