On Wed, Oct 08, 2014 at 12:23:59PM +0200, Markus Teich wrote:
> The second problem is when using ntp to synchronize the clock. In this
> case the channel provided by time.Tick() stops to send on that channel and
> therefore the whole loop stops and the status bar is not updated anymore.
>
> Can you help me with an idiomatic solution for these two problems?

Is there a reason this wouldn't work?

for {
        // ...
        time.Now().Format("Mon 02 Ý 15:04:05"),
        // ...
        time.Sleep(time.Second)
}


Reply via email to