Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CountriesRequest ¶
type CountriesRequest struct { }
type CountriesResponse ¶
type CountriesResponse struct {
Countries []Country `json:"countries"`
}
type Holiday ¶
type Holiday struct { // the country this holiday occurs in CountryCode string `json:"countryCode"` // date of the holiday in yyyy-mm-dd format Date string `json:"date"` // the local name of the holiday LocalName string `json:"localName"` // the name of the holiday in English Name string `json:"name"` // the regions within the country that observe this holiday (if not all of them) Regions []string `json:"regions"` // the type of holiday Public, Bank, School, Authorities, Optional, Observance Types []string `json:"types"` }
type HolidaysService ¶
type HolidaysService struct {
// contains filtered or unexported fields
}
func NewHolidaysService ¶
func NewHolidaysService(token string) *HolidaysService
func (*HolidaysService) Countries ¶
func (t *HolidaysService) Countries(request *CountriesRequest) (*CountriesResponse, error)
Get the list of countries that are supported by this API
func (*HolidaysService) List ¶
func (t *HolidaysService) List(request *ListRequest) (*ListResponse, error)
List the holiday dates for a given country and year
type ListRequest ¶
type ListResponse ¶
type ListResponse struct {
Holidays []Holiday `json:"holidays"`
}
Click to show internal directories.
Click to hide internal directories.