diff options
Diffstat (limited to 'test/main.go')
| -rw-r--r-- | test/main.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/main.go b/test/main.go index 6023991..f99ace1 100644 --- a/test/main.go +++ b/test/main.go @@ -243,9 +243,13 @@ func myMain() { } } + ticker := time.Tick(time.Second) + mainloop: for { select { + case curtime := <-ticker: + l.SetText(curtime.String()) case <-w.Closing: break mainloop case <-b.Clicked: |
