Answers for "go for ticker"

Go
0

go for ticker

ticker := time.NewTicker(20 * time.Second)
for range ticker.C {
  // Do Stuff
}
ticker.Stop()
Posted by: Guest on January-29-2021

Browse Popular Code Answers by Language