StackOverflow 文档 Go 教程 循环 定时循环 定时循环 Created: November-22, 2018 package main import( "fmt" "time" ) func main() { for _ = range time.Tick(time.Second * 3) { fmt.Println("Ticking every 3 seconds") } } 休息和继续不同形式的循环