Ticker 实例 ticker一般用来作为时间周期执行命令: func main() { ticker := time.NewTicker(time.Second) // 每隔1s进行一次打印 for { <-ticker.C fmt.Println(