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 Mallard ¶
type Mallard struct {
ConfigurableDuck
}
func NewMallardDuck ¶
func NewMallardDuck() *Mallard
type Redhead ¶
type Redhead struct {
ConfigurableDuck
}
func NewRedheadDuck ¶
func NewRedheadDuck() *Redhead
type Rubber ¶
type Rubber struct {
ConfigurableDuck
}
func NewRubberDuck ¶
func NewRubberDuck() *Rubber
Click to show internal directories.
Click to hide internal directories.