【golang】select{}中break的易错点

dongzaidong ·
``` Loop: for { select { case <-tick.C: a++ if a > 2 { break Loop } } time.Sleep(time.Second * 1) fmt.Println("循环还在执行") } ```
#1