Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Beverage ¶
func NewBeverage ¶
func NewBeverage(name string, cost float64, bt BeverageType) Beverage
func NewCondiment ¶
func NewCondiment(b Beverage, name string, cost float64, bt CondimentType) Beverage
type BeverageType ¶
type BeverageType int
const ( DARKROAST BeverageType = iota + 1 HOUSEBLEND DECAF )
type CondimentDecorator ¶
type CondimentDecorator interface {
Beverage
}
type DarkRoast ¶
type DarkRoast struct {
// contains filtered or unexported fields
}
func NewDarkRoast ¶
type HouseBlend ¶
type HouseBlend struct {
// contains filtered or unexported fields
}
func NewHouseBlend ¶
func NewHouseBlend(name string, cost float64) *HouseBlend
func (*HouseBlend) Cost ¶
func (hb *HouseBlend) Cost() float64
func (*HouseBlend) DrinkName ¶
func (hb *HouseBlend) DrinkName() string
Click to show internal directories.
Click to hide internal directories.