From 0bab012bc266368666ca275d7389814a7fd58ed1 Mon Sep 17 00:00:00 2001 From: jiro4989 Date: Tue, 7 Sep 2021 08:42:00 +0900 Subject: [PATCH] :+1: change function name --- main.go | 2 +- view.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()