Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyIngredientsList = errors.New("Empty ingredients list")
ErrEmptyIngredientsList empty ingredients
View Source
var ErrEmptyName = errors.New("invalid empty name")
ErrEmptyName invalid empty name
View Source
var ErrEmptyOwner = errors.New("invalid empty owner")
ErrEmptyOwner empty owner
View Source
var ErrNotFound = errors.New("not found")
ErrNotFound not found
Functions ¶
This section is empty.
Types ¶
type Pizza ¶
type Pizza struct { ID ID Name string Ingredients []Ingredient CreatedAt time.Time }
Pizza data
func NewPizza ¶
func NewPizza(name string, ingredients []Ingredient) (*Pizza, error)
NewPizza create a new pizza
func (*Pizza) GetIngredientsAsString ¶
GetIngredientsAsString function
func (*Pizza) SetIngredientsAsList ¶
SetIngredientsAsList function
Click to show internal directories.
Click to hide internal directories.