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") } } 休息和繼續不同形式的迴圈