holidayspl/models.go
2024-09-30 22:14:16 +02:00

25 lines
358 B
Go

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
}