25 lines
358 B
Go
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
|
|
}
|