day.Events is simply a []*Event right now, ordered by start time. That has very clear limitations and demands considering complex edge cases for overlapping and overhanging and contained events when implementing e.g. events pushing each other on move operations.
For starters, iteration sorted by end time is likely needed, but also perhaps grouping events.
day.Events
is simply a[]*Event
right now, ordered by start time. That has very clear limitations and demands considering complex edge cases for overlapping and overhanging and contained events when implementing e.g. events pushing each other on move operations.For starters, iteration sorted by end time is likely needed, but also perhaps grouping events.