Several changes

Switch timerlist to a slice of pointers to timers
Go mod
This commit is contained in:
2022-01-17 09:55:44 -06:00
parent d35b67037e
commit d0c9ea8f27
4 changed files with 36 additions and 14 deletions

View File

@@ -45,7 +45,7 @@ func (ts *timerlistSort) Swap(l, r int) {
}
func (ts *timerlistSort) Less(l, r int) bool {
return ts.by(&ts.timerlists[l], &ts.timerlists[r])
return ts.by(ts.timerlists[l], ts.timerlists[r])
}
func (timerlist *TimerList) sortBy(by func(t1, t2 *Timer) bool) *TimerList {