condiment

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: 1 Imported by: 0

Documentation

Index

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

type Condiment interface {
	fmt.Stringer

	GetCondimentCost() float64
}

func NewChocolate

func NewChocolate(quantity uint) Condiment

func NewChocolateCrumbs

func NewChocolateCrumbs(weight uint) Condiment

func NewCinnamon

func NewCinnamon() Condiment

func NewCoconutFlakes

func NewCoconutFlakes(weight float64) Condiment

func NewCream

func NewCream() Condiment

func NewIceCubes

func NewIceCubes(cubesType IceCubeType, quantity uint) Condiment

func NewLemon

func NewLemon(quantity uint) Condiment

func NewLiquor

func NewLiquor(liquorType LiquorType) Condiment

func NewSyrup

func NewSyrup(syrupType SyrupType) 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

type SyrupType

type SyrupType int

func (SyrupType) String

func (st SyrupType) String() string

Jump to

Keyboard shortcuts

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