Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Beer ¶
type Beer struct { ProductID int `json:"product_id"` Name string `json:"name"` Price string `json:"price"` BeerID int `json:"beer_id"` Category string `json:"category"` Type *BeerType `json:"type"` Brewer string `json:"brewer"` Country string `json:"country"` }
Beer representation of beer into data struct
type BeerType ¶
type BeerType int
func NewBeerType ¶
NewBeerType initialize a type from enum beerTypes
func (*BeerType) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.