Go to file
2024-09-30 22:14:16 +02:00
go.mod init 2024-09-30 22:14:16 +02:00
holidays_test.go init 2024-09-30 22:14:16 +02:00
holidays.go init 2024-09-30 22:14:16 +02:00
models.go init 2024-09-30 22:14:16 +02:00
Readme.md init 2024-09-30 22:14:16 +02:00

This is little library to operate with bank holidays in Poland.


import "git.ma-al.com/goc_marek/holidayspl"

holidays := holidayspl.New()

// to get list of all holidays
holidays.GetHolidaysList(d.Year())

// get holiday by date or false as second returned value
hh, ok := holidays.GetByDate(time.Date(2024, time.March, 31, 0, 0, 0, 0, time.UTC))

For more info just look at th tests file.