Documentation ¶
Index ¶
- type BirthdayEvent
- func (b *BirthdayEvent) Birthday() time.Time
- func (b *BirthdayEvent) BirthdayAfter(now time.Time) time.Time
- func (b *BirthdayEvent) Next() BirthdayEvent
- func (b *BirthdayEvent) NextAfter(now time.Time) BirthdayEvent
- func (b *BirthdayEvent) NextBirthday() time.Time
- func (b *BirthdayEvent) String() string
- type Birthdays
- func (bs *Birthdays) After(ref time.Time) Birthdays
- func (bs *Birthdays) Before(ref time.Time) Birthdays
- func (bs Birthdays) Len() int
- func (bs Birthdays) Less(i, j int) bool
- func (bs *Birthdays) NextBirthdays() Birthdays
- func (bs *Birthdays) NextBirthdaysAfter(ref time.Time) Birthdays
- func (bs *Birthdays) String() string
- func (bs Birthdays) Swap(i, j int)
- type Event
- type Eventable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BirthdayEvent ¶
type BirthdayEvent struct { Event // contains filtered or unexported fields }
func NewBirthday ¶
func NewBirthday(date time.Time, text string) BirthdayEvent
func (*BirthdayEvent) Birthday ¶
func (b *BirthdayEvent) Birthday() time.Time
func (*BirthdayEvent) BirthdayAfter ¶
func (b *BirthdayEvent) BirthdayAfter(now time.Time) time.Time
func (*BirthdayEvent) Next ¶
func (b *BirthdayEvent) Next() BirthdayEvent
func (*BirthdayEvent) NextAfter ¶
func (b *BirthdayEvent) NextAfter(now time.Time) BirthdayEvent
func (*BirthdayEvent) NextBirthday ¶
func (b *BirthdayEvent) NextBirthday() time.Time
func (*BirthdayEvent) String ¶
func (b *BirthdayEvent) String() string
type Birthdays ¶
type Birthdays []BirthdayEvent
func (*Birthdays) NextBirthdays ¶
func (*Birthdays) NextBirthdaysAfter ¶
type Event ¶
type Event struct {
// contains filtered or unexported fields
}
func (*Event) DaysFromNow ¶
Click to show internal directories.
Click to hide internal directories.