Versions in this module Expand all Collapse all v1 v1.0.1 Nov 12, 2025 v1.0.0 Nov 10, 2025 Changes in this version + const DayTypeHalfHoliday + const DayTypeNonWorking + const DayTypeWorking + const DayTypeWorkingCovid + const ErrorCodeInternalError + const ErrorCodeNotFound + const ErrorCodeWrongDate + const YearTypeLeap + const YearTypeNotLeap + type APIError struct + Code ErrorCode + Message string + Status int + func (e *APIError) Error() string + type Client struct + func New() *Client + func NewWithClient(client *http.Client) *Client + func (c *Client) GetBy(params Params) ([]DayType, error) + func (c *Client) GetByPeriod(date1, date2 string, params Params) ([]DayType, error) + func (c *Client) IsLeap(year int) (bool, error) + func (c *Client) Today(params Params) (*DayType, error) + func (c *Client) Tomorrow(params Params) (*DayType, error) + type CountryCode string + const CountryCodeBelarus + const CountryCodeKazakhstan + const CountryCodeRussia + const CountryCodeTurkey + const CountryCodeUSA + const CountryCodeUkraine + const CountryCodeUzbekistan + type DayType string + type ErrorCode string + type Params struct + CountryCode *CountryCode + Covid *bool + Day *int + Month *time.Month + Pre *bool + SixDayWeek *bool + TZ *string + Year int + type YearType string