embedded_composition

package
v0.0.0-...-9d7b045 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Swim

func Swim()

Types

type Animal

type Animal struct{}

func (*Animal) Eat

func (r *Animal) Eat()

type Athlete

type Athlete struct{}

func (*Athlete) Train

func (a *Athlete) Train()

type CompositeSwimmerB

type CompositeSwimmerB struct {
	Trainer
	Swimmer
}

type Shark

type Shark struct {
	Animal
	Swim func()
}

type Swimmer

type Swimmer interface {
	Swim()
}

type SwimmerImplementor

type SwimmerImplementor struct{}

func (*SwimmerImplementor) Swim

func (s *SwimmerImplementor) Swim()

type Trainer

type Trainer interface {
	Train()
}

Jump to

Keyboard shortcuts

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