Documentation ¶
Index ¶
- Constants
- Variables
- type Client
- func (client *Client) Between(ctx context.Context, from time.Time, to time.Time) ([]*Holiday, error)
- func (client *Client) Get(ctx context.Context, t time.Time) (*Holiday, error)
- func (client *Client) IsHoliday(ctx context.Context, t time.Time) (bool, error)
- func (client *Client) IsTodayHoliday(ctx context.Context) (bool, error)
- func (client *Client) Next(ctx context.Context, t time.Time) (*Holiday, error)
- func (client *Client) NextN(ctx context.Context, t time.Time, n int) ([]*Holiday, error)
- func (client *Client) WithoutContext() *ClientWithoutContext
- type ClientWithoutContext
- func (c *ClientWithoutContext) Between(from time.Time, to time.Time) ([]*Holiday, error)
- func (c *ClientWithoutContext) Get(t time.Time) (*Holiday, error)
- func (c *ClientWithoutContext) IsHoliday(t time.Time) (bool, error)
- func (c *ClientWithoutContext) IsTodayHoliday() (bool, error)
- func (c *ClientWithoutContext) Next(t time.Time) (*Holiday, error)
- func (c *ClientWithoutContext) NextN(t time.Time, n int) ([]*Holiday, error)
- type Holiday
Constants ¶
View Source
const ( EnJapaneseHolidayCalendar = "en.japanese#holiday@group.v.calendar.google.com" JaJapaneseHolidayCalendar = "ja.japanese#holiday@group.v.calendar.google.com" )
Variables ¶
View Source
var ( HolidayFormat = "2006-01-02\t%s" JapaneseHolidayLocation *time.Location )
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewClientWithCalendar ¶
func (*Client) IsTodayHoliday ¶ added in v1.1.0
func (*Client) WithoutContext ¶
func (client *Client) WithoutContext() *ClientWithoutContext
type ClientWithoutContext ¶
type ClientWithoutContext struct {
// contains filtered or unexported fields
}
func (*ClientWithoutContext) Get ¶
func (c *ClientWithoutContext) Get(t time.Time) (*Holiday, error)
func (*ClientWithoutContext) IsHoliday ¶
func (c *ClientWithoutContext) IsHoliday(t time.Time) (bool, error)
func (*ClientWithoutContext) IsTodayHoliday ¶ added in v1.1.0
func (c *ClientWithoutContext) IsTodayHoliday() (bool, error)
Click to show internal directories.
Click to hide internal directories.