Versions in this module Expand all Collapse all v1 v1.0.0 Jan 4, 2019 Changes in this version + type Set struct + func NewSet() *Set + func (s *Set) Add(slot *Slot) + func (s *Set) All(f func(*Slot) bool) bool + func (s *Set) Any(f func(*Slot) bool) bool + func (s *Set) Contains(t time.Time) bool + func (s *Set) Find(f func(*Slot) bool) []*Slot + func (s *Set) Overlaps(slot *Slot) bool + func (s *Set) Slots() []*Slot + func (s *Set) SplitLinear() []*Set + type Slot struct + func NewSlot(name string, start time.Time, duration time.Duration) *Slot + func NewSlotFromTimes(name string, start, end time.Time) *Slot + func (s *Slot) Contains(t time.Time) bool + func (s *Slot) Duration() time.Duration + func (s *Slot) End() time.Time + func (s *Slot) Name() string + func (s *Slot) Overlaps(s2 *Slot) bool + func (s *Slot) Start() time.Time + func (s *Slot) String() string