mirror of
https://github.com/LeRoid-hub/Mensa-API.git
synced 2025-01-31 11:44:55 +00:00
17 lines
253 B
Go
17 lines
253 B
Go
|
package models
|
||
|
|
||
|
type Mensa struct {
|
||
|
Name string
|
||
|
Location string
|
||
|
Days []Day
|
||
|
}
|
||
|
|
||
|
func (m *Mensa) SetMensa(name string, location string) {
|
||
|
m.Name = name
|
||
|
m.Location = location
|
||
|
}
|
||
|
|
||
|
func (m *Mensa) AddDay(day Day) {
|
||
|
m.Days = append(m.Days, day)
|
||
|
}
|