You need to define the ticker outside of the `for{}` and then check the channel in this case statement.

Or you can to `<-time.After(time.Second*10)`