fixtures

package
v0.0.0-...-4921599 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FuelCan

type FuelCan interface {
	Qty() float32
	Capacity() float32
	Fill(Vehicle) Vehicle
}

FuelCan can hold fuel!

type Vehicle

type Vehicle interface {
	Range() int
	Attach(message string, wheels ...Wheel)
	Wheels() []Wheel
	Drive(dir string, dist float32) url.URL
	Refuel(FuelCan) *FuelCan
	EnterLeave(map[int]string, bool)
	Occupants() map[int]string
}

Vehicle can take you places!

type Wheel

type Wheel interface {
	Diameter() float32
}

Wheel goes round and round!

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL