可以使用下面兩方法持續監聽channel. for select. 1. package main. 2. import (. 3. "fmt". 4. "time". 5. ) 6. . 7. func main() {. 8. ticker := time.
確定! 回上一頁