Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client interface {
FirstPeriodStartDate(year int) time.Time
LastDayOfLastPeriod(year int) time.Time
FirstDayOfMonth(date time.Time) time.Time
PeriodNumber(date time.Time) int
TimeOfWeekday(date time.Time, weekday time.Weekday) time.Time
}
func NewClient ¶
func NewClient(opts PeriodOptions) Client
type PeriodOption ¶
type PeriodOption func(*PeriodOptions)
func WithOffset ¶
func WithOffset(offset int) PeriodOption
type PeriodOptions ¶
type PeriodOptions struct {
Offset int
}
func ApplyPeriodOptions ¶
func ApplyPeriodOptions(opts *PeriodOptions, modifiers ...PeriodOption) PeriodOptions
Click to show internal directories.
Click to hide internal directories.