Today I learned how to simply repeat a task over time with regularity in Go:
for range time.Tick(1 * time.Second) { fmt.Println("Hello, playground") // any task here }
Here's a playground example in action: https://play.golang.org/p/RUdgii5EMx7
Today I learned how to simply repeat a task over time with regularity in Go:
for range time.Tick(1 * time.Second) { fmt.Println("Hello, playground") // any task here }
Here's a playground example in action: https://play.golang.org/p/RUdgii5EMx7
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)