From 8a9e6c2becfe3588be99f165333e7b4106394542 Mon Sep 17 00:00:00 2001 From: Brian Buller Date: Wed, 23 Aug 2023 11:29:30 -0500 Subject: [PATCH] Fully Initialize on New --- timerlist.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/timerlist.go b/timerlist.go index 7c66ac2..36c6df1 100644 --- a/timerlist.go +++ b/timerlist.go @@ -19,7 +19,7 @@ type TimerList struct { } // NewTimerList creates a new empty TimerList. -func NewTimerList() *TimerList { return &TimerList{} } +func NewTimerList() *TimerList { return &TimerList{Timers: []*Timer{}} } func (timerlist *TimerList) Size() int { return len(timerlist.Timers) } func (timerlist *TimerList) GetTimerSlice() []*Timer { return timerlist.Timers }