Documentation
¶
Index ¶
- Constants
- type Condiment
- func NewChocolate(quantity uint) Condiment
- func NewChocolateCrumbs(weight uint) Condiment
- func NewCinnamon() Condiment
- func NewCoconutFlakes(weight float64) Condiment
- func NewCream() Condiment
- func NewIceCubes(cubesType IceCubeType, quantity uint) Condiment
- func NewLemon(quantity uint) Condiment
- func NewLiquor(liquorType LiquorType) Condiment
- func NewSyrup(syrupType SyrupType) Condiment
- type IceCubeType
- type LiquorType
- type SyrupType
Constants ¶
View Source
const ( IceCubeTypeDry = IceCubeType(iota) IceCubeTypeWater )
View Source
const ( LiquorTypeNut = LiquorType(iota) LiquorTypeChocolate )
View Source
const ( SyrupTypeChocolate = SyrupType(iota) SyrupTypeMaple )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Condiment ¶
func NewChocolate ¶
func NewChocolateCrumbs ¶
func NewCinnamon ¶
func NewCinnamon() Condiment
func NewCoconutFlakes ¶
func NewIceCubes ¶
func NewIceCubes(cubesType IceCubeType, quantity uint) Condiment
func NewLiquor ¶
func NewLiquor(liquorType LiquorType) Condiment
type IceCubeType ¶
type IceCubeType int
func (IceCubeType) GetCubeCost ¶
func (ict IceCubeType) GetCubeCost() float64
func (IceCubeType) String ¶
func (ict IceCubeType) String() string
type LiquorType ¶
type LiquorType int
func (LiquorType) String ¶
func (lt LiquorType) String() string
Click to show internal directories.
Click to hide internal directories.