Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CartNotFoundErr = errors.New("cart not found")
Functions ¶
This section is empty.
Types ¶
type Cart ¶
type Cart struct { Key string `json:"key"` Shipping float64 `json:"shipping"` Products []product.Product `json:"products"` }
Cart stores the cart
func (*Cart) AddProduct ¶
AddItem adds a new item in the cart
func (*Cart) RemoveProduct ¶
RemoveItem remove an item from the cart
Click to show internal directories.
Click to hide internal directories.