Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Beverage ¶
type Beverage interface {
BoilWater()
Brew()
PourInCup()
AddThings()
WantAddThings() bool
}
type CommandEye ¶
type CommandEye struct {
// contains filtered or unexported fields
}
func (*CommandEye) Treat ¶
func (cmd *CommandEye) Treat()
type CommandNose ¶
type CommandNose struct {
// contains filtered or unexported fields
}
func (*CommandNose) Treat ¶
func (cmd *CommandNose) Treat()
type Hero ¶
type Hero struct {
// contains filtered or unexported fields
}
func (*Hero) SetWeaponStrategy ¶
func (h *Hero) SetWeaponStrategy(s WeaponStrategy)
type MakeCoffee ¶
type MakeCoffee struct {
// contains filtered or unexported fields
}
func NewMakeCoffee ¶
func NewMakeCoffee() *MakeCoffee
func (*MakeCoffee) AddThings ¶
func (mc *MakeCoffee) AddThings()
func (*MakeCoffee) BoilWater ¶
func (mc *MakeCoffee) BoilWater()
func (*MakeCoffee) Brew ¶
func (mc *MakeCoffee) Brew()
func (*MakeCoffee) MakeBerverage ¶
func (t *MakeCoffee) MakeBerverage()
func (*MakeCoffee) PourInCup ¶
func (mc *MakeCoffee) PourInCup()
func (*MakeCoffee) WantAddThings ¶
func (mc *MakeCoffee) WantAddThings() bool
type Monitor ¶
type Monitor struct {
ListenerList []Listener
}
func (*Monitor) AddListener ¶
func (*Monitor) RemoveListener ¶
type StuOne ¶
type StuOne struct {
Badthing string
}
func (*StuOne) DoBadthing ¶
func (s *StuOne) DoBadthing()
func (*StuOne) OnTeacherComming ¶
func (s *StuOne) OnTeacherComming()
type StuTwo ¶
type StuTwo struct {
Badthing string
}
func (*StuTwo) DoBadthing ¶
func (s *StuTwo) DoBadthing()
func (*StuTwo) OnTeacherComming ¶
func (s *StuTwo) OnTeacherComming()
type WeaponStrategy ¶
type WeaponStrategy interface {
UseWeapon()
}
Click to show internal directories.
Click to hide internal directories.