mirror of
https://github.com/LeRoid-hub/Mensa-CLI.git
synced 2025-01-31 03:34:57 +00:00
15 lines
189 B
Go
15 lines
189 B
Go
|
package models
|
||
|
|
||
|
type Menu struct {
|
||
|
Name string
|
||
|
Meal []Meal
|
||
|
}
|
||
|
|
||
|
func (m *Menu) SetMenu(name string) {
|
||
|
m.Name = name
|
||
|
}
|
||
|
|
||
|
func (m *Menu) AddMeal(meal Meal) {
|
||
|
m.Meal = append(m.Meal, meal)
|
||
|
}
|