Documentation ¶ Index ¶ func NewGetAllProductResponse(product []product.Product) getAllProductResponse type GetProductResponse Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewGetAllProductResponse ¶ func NewGetAllProductResponse(product []product.Product) getAllProductResponse Types ¶ type GetProductResponse ¶ type GetProductResponse struct { ID int `json:"id"` CategoryID int `json:"category_id"` Name string `json:"name"` Price int `json:"price"` Image string `json:"image"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` } Source Files ¶ View all Source files get_all_product.go get_product.go Click to show internal directories. Click to hide internal directories.