Mensa-CLI/models/mensa.go

17 lines
269 B
Go
Raw Normal View History

2024-09-20 21:31:19 +00:00
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)
}