Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIsBusinessDay ¶
CheckIsBusinessDay determines whether a given date is either at the weekend or a public holiday.
Types ¶
type Holiday ¶
type Holiday struct { time.Time Name string // Common name for this holiday NotStatutory bool // Not a legally binding holiday. May not be a free day for all employees. HalfDay bool // This is a half-day holiday. }
Holiday defines an individual public holiday.
type Holidays ¶
type Holidays struct { // You can find ISO3166-2 codes on Wikipedia, for e.g. Austria: // https://en.wikipedia.org/wiki/ISO_3166-2:AT Country string // ISO3166-1 country code Name string // name of subdivision Timezone string // Timezone used in this area Workdays []string // An array listing the normal workdays Holidays []Holiday // A set of public holidays }
Holidays defines a set of public holidays for a given territory.
Click to show internal directories.
Click to hide internal directories.