service

package
v0.0.0-...-c654d8f Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProductList

func ProductList()

Types

type Cart

type Cart struct {
	Items map[string]int
}

func InitCart

func InitCart() *Cart

func (Cart) AddItem

func (cart Cart) AddItem(key string) error

func (Cart) ApplyPromo

func (cart Cart) ApplyPromo() (float32, string)

func (Cart) Checkout

func (cart Cart) Checkout() (float32, error)

Jump to

Keyboard shortcuts

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