diff --git a/main.go b/main.go index 6d2d376..1aecfef 100644 --- a/main.go +++ b/main.go @@ -44,7 +44,7 @@ func main() { func clock(s *Slot) { for !s.IsFinished() { s.Switch() - drawSlot(s) + DrawSlot(s) time.Sleep(time.Duration(s.IntervalTime()) * time.Millisecond) } } diff --git a/view.go b/view.go index cfaf4ca..2f11983 100644 --- a/view.go +++ b/view.go @@ -6,7 +6,7 @@ import ( termbox "github.com/nsf/termbox-go" ) -func drawSlot(s *Slot) { +func DrawSlot(s *Slot) { termbox.Clear(termbox.ColorDefault, termbox.ColorDefault) idx := s.CurrentSlotIndex()