BuilderPattern

package module
v0.0.0-...-12f7594 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2023 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	FlatDiscount       = CouponKind("Flat")
	PercentageDiscount = CouponKind("Percentage")
)

Variables

This section is empty.

Functions

func Main

func Main()

Types

type Combo

type Combo struct {
	// contains filtered or unexported fields
}

func BuildFriendshipDayBucket

func BuildFriendshipDayBucket(coupon *Coupon) Combo

Friendship Day Bucket contains two Hot Wings and a Medium Fry

func BuildVeganSpecialBucket

func BuildVeganSpecialBucket(coupon *Coupon) Combo

Vegan Special Bucket contains two Medium Fries

type Coupon

type Coupon struct {
	// contains filtered or unexported fields
}

type CouponKind

type CouponKind string

type FoodItem

type FoodItem interface {
	// contains filtered or unexported methods
}

type HotWings

type HotWings struct {
}

type MediumFries

type MediumFries struct {
}

Jump to

Keyboard shortcuts

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