mirror of
https://github.com/holidayapi/holidayapi-go.git
synced 2025-06-21 12:36:33 +00:00
For a better control over the returned data, a structure is created that maps the response.
14 lines
313 B
Go
14 lines
313 B
Go
package holidayapi
|
|
|
|
type Holiday struct {
|
|
Name string `json:"name"`
|
|
Date string `json:"date"`
|
|
Observed string `json:"observed"`
|
|
Public string `json:"public"`
|
|
}
|
|
|
|
type ResponseHoliday struct {
|
|
Status int `json:"status"`
|
|
Error string `json:"error"`
|
|
Holidays map[string][]Holiday `json:"holidays"`
|
|
}
|