package_mode

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Animal

type Animal interface {
	Eater
	Breathe()
	Sleep(duration time.Duration)
}

type Car

type Car[FuelType fuel.Fuel] interface {
	Brand() string
	FuelTank() cars.FuelTank[FuelType]
	Refuel(fuel FuelType, volume int) error
}

type Counter

type Counter interface {
	int
}

type Driver

type Driver[FuelType fuel.Fuel, CarType Car[FuelType]] interface {
	Wroom() error
	Drive(car CarType)
}

type Earth

type Earth interface {
	AddHumans(HumansCount) []Human
	HumanPopulation() HumansCount
}

type Eater

type Eater interface {
	Eat(foods ...Food)
}

type Farmer

type Farmer interface {
	Human
	Driver[fuel.Diesel, cars.FordF150]
	Do(work *Work) error
	LivesInAVillage()
}

type Food

type Food interface {
	Calories() int
}

type Human

type Human = Primate

type HumansCount

type HumansCount = int

type Primate

type Primate Animal

type UrbanResident

type UrbanResident interface {
	Human
	Driver[fuel.Gasoline, cars.HyundaiSolaris]
	Do(work *Work) error
	LivesInACity()
}

type Work

type Work struct {
	Name string
}

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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