holidayspl/models.go

25 lines
358 B
Go
Raw Normal View History

2024-09-30 20:11:45 +00:00
package holidayspl
import "time"
type HolidayType int
const (
FIXED HolidayType = iota
MOVABLE
)
func (d HolidayType) String() string {
return [...]string{"fixed", "movable"}[d]
}
type Holiday struct {
Name string
NamePL string
Month time.Month
Day int
HolidayType HolidayType
PlusEaster int
Date time.Time
}