duck

package
v0.0.0-...-2b4790d Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigurableDuck

type ConfigurableDuck interface {
	Duck

	SetQuackStrategy(quack_strategy.QuackStrategy)
	SetFlyStrategy(fly_strategy.FlyStrategy)
	SetDanceStrategy(dance_strategy.DanceStrategy)
}

type Decoy

type Decoy struct {
	ConfigurableDuck
}

func NewDecoyDuck

func NewDecoyDuck() *Decoy

type Duck

type Duck interface {
	Quack()
	Fly()
	Dance()

	fmt.Stringer
}

type Mallard

type Mallard struct {
	ConfigurableDuck
}

func NewMallardDuck

func NewMallardDuck() *Mallard

type Model

type Model struct {
	ConfigurableDuck
}

func NewModelDuck

func NewModelDuck() *Model

type Redhead

type Redhead struct {
	ConfigurableDuck
}

func NewRedheadDuck

func NewRedheadDuck() *Redhead

type Rubber

type Rubber struct {
	ConfigurableDuck
}

func NewRubberDuck

func NewRubberDuck() *Rubber

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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