package
Version:
v1.0.2
Opens a new window with list of versions in this module.
Published: Sep 8, 2024
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
var APIBaseURL = "https://date.nager.at/Api/v3/PublicHolidays"
FetchHolidays dynamically fetches holidays for a specific year and country code,
and caches the result to avoid redundant API calls.
type Holiday struct {
Date string `json:"date"`
LocalName string `json:"localName"`
Name string `json:"name"`
CountryCode string `json:"countryCode"`
}
Holiday represents the structure of the response from Date.nager.at API.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.