diff --git a/core.go b/core.go index 07c08f3..b383e6d 100644 --- a/core.go +++ b/core.go @@ -376,7 +376,7 @@ func jsonEncode(v interface{}) string { var GetHolidaysData func() ([]HolidaysItem, error) -var holidayCache *cache +var holidayCache cache var holidayCacheLock sync.Mutex func GetHolidaysDataWithCache() ([]HolidaysItem, error) {