beverage

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 (
	CapuccinoSizeRegular = CapuccinoSize(iota)
	CapuccinoSizeDouble
)
View Source
const (
	LatteSizeRegular = LatteSize(iota)
	LatteSizeDouble
)
View Source
const (
	MilkshakeSizeSmall = MilkshakeSize(iota)
	MilkshakeSizeMedium
	MilkshakeSizeLarge
)
View Source
const (
	TeaKindBlack = TeaKind(iota)
	TeaKindGreen
	TeaKindFruit
	TeaKindRed
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Beverage

type Beverage interface {
	fmt.Stringer

	GetCost() float64
}

func NewCapuccino

func NewCapuccino(size CapuccinoSize) Beverage

func NewCoffee

func NewCoffee() Beverage

func NewLatte

func NewLatte(size LatteSize) Beverage

func NewMilkshake

func NewMilkshake(size MilkshakeSize) Beverage

func NewTea

func NewTea(kind TeaKind) Beverage

type CapuccinoSize

type CapuccinoSize int

func (CapuccinoSize) String

func (cs CapuccinoSize) String() string

type LatteSize

type LatteSize int

func (LatteSize) String

func (ls LatteSize) String() string

type MilkshakeSize

type MilkshakeSize int

func (MilkshakeSize) String

func (m MilkshakeSize) String() string

type TeaKind

type TeaKind int

func (TeaKind) String

func (t TeaKind) String() string

Jump to

Keyboard shortcuts

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