animals

package
v0.0.0-...-f53f79a Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2019 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 Animal

type Animal interface {
	Move() // any type that implements an area method is considered an Animal
}

type Bird

type Bird struct {
	Name string
}

func (*Bird) Fly

func (this *Bird) Fly()

type BirdAdapter

type BirdAdapter struct {
	*Bird
}

func (*BirdAdapter) Move

func (this *BirdAdapter) Move()

type ClownFish

type ClownFish struct {
	Name string
}

func (*ClownFish) Swim

func (this *ClownFish) Swim()

type ClownFishAdapter

type ClownFishAdapter struct {
	*ClownFish
}

func (*ClownFishAdapter) Move

func (this *ClownFishAdapter) Move()

type Human

type Human struct {
	Name string
}

func (*Human) Move

func (this *Human) Move()

type Mammal

type Mammal interface {
	Move()
}

type MultiAnimal

type MultiAnimal struct {
	// contains filtered or unexported fields
}

func (*MultiAnimal) Move

func (m *MultiAnimal) Move()

type Shark

type Shark struct {
	Name string
}

func (*Shark) Swim

func (this *Shark) Swim()

type SharkAdapter

type SharkAdapter struct {
	*Shark
}

func (*SharkAdapter) Move

func (this *SharkAdapter) Move()

Jump to

Keyboard shortcuts

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