Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NotFoundError = &ProductError{Code: http.StatusNotFound, Message: "Not found"}
Functions ¶
This section is empty.
Types ¶
type Product ¶
type Product struct { ID int `json:"id"` Name string `json:"name"` Price int `json:"price"` Color string `json:"color"` Size string `json:"size"` }
Product model
type ProductError ¶
ProductError model
func (*ProductError) Error ¶
func (err *ProductError) Error() string
type ProductPage ¶
ProductPage model
Click to show internal directories.
Click to hide internal directories.