Documentation ¶ Index ¶ type Product type Rating Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Product ¶ type Product struct { Id string `json:"id"` Name string `json:"name"` Brand string `json:"brand"` Price float32 `json:"price"` Category string `json:"category"` Image string `json:"image"` Rating } type Rating ¶ type Rating struct { // out of 5 (e.g. 3.9) Stars float32 `json:"rating"` // number of customers who reviewed the product Customers int `json:"customers"` } Source Files ¶ View all Source files model.go Click to show internal directories. Click to hide internal directories.