Versions in this module Expand all Collapse all v0 v0.0.4 Dec 3, 2018 Changes in this version type Date + func (d Date) AddDuration(dr time.Duration) Date + func (d Date) AddMonths(n int) Date + func (d Date) FirstDayOfMonth() Date + func (d Date) LastDayOfMonth() Date v0.0.3 Sep 5, 2018 Changes in this version type Range + func (r Range) Intersects(dr Range) bool v0.0.2 Aug 23, 2018 v0.0.1 Aug 23, 2018 Changes in this version + func RangeNotEmpty(dr Range) bool + type ByAsc []Date + func (a ByAsc) Len() int + func (a ByAsc) Less(i, j int) bool + func (a ByAsc) Swap(i, j int) + type Date struct + Day int + Month time.Month + Year int + func FromTime(t time.Time) Date + func Parse(s string) (Date, error) + func (d *Date) Scan(value interface{}) error + func (d *Date) UnmarshalText(data []byte) error + func (d Date) AddDays(n int) Date + func (d Date) After(p Date) bool + func (d Date) Before(p Date) bool + func (d Date) DaysSince(s Date) (days int) + func (d Date) Equal(d2 Date) bool + func (d Date) In(loc *time.Location) time.Time + func (d Date) IsValid() bool + func (d Date) MarshalText() ([]byte, error) + func (d Date) String() string + func (d Date) Value() (driver.Value, error) + type Range struct + End Date + Start Date + func (r Range) Contains(d Date) bool + func (r Range) Empty() bool + func (r Range) Encloses(dr Range) bool + func (r Range) IsValid() bool + type RangeSet []Range + func (a RangeSet) ExtendEnd() RangeSet + func (a RangeSet) Filter(test RangeTest) RangeSet + func (a RangeSet) FilterEmpty() RangeSet + func (a RangeSet) Impose(dr ...Range) RangeSet + func (a RangeSet) ImposeSet(set RangeSet) RangeSet + func (a RangeSet) List() []Range + func (a RangeSet) ShiftEnd(n int) RangeSet + func (a RangeSet) Sub(dr ...Range) RangeSet + func (a RangeSet) SubSet(set RangeSet) RangeSet + func (a RangeSet) TrimEnd() RangeSet + type RangeTest func(Range) bool