Loading

摘要: 需要知道的知识点: 1. select 在go中的用法 2. break label 打断label内部的for循环 实现select优先级的核心代码(先跑A,A确定没跑再跑B) 点击查看代码 for { select { case A := <-ch1: fmt.Println(A) case B 阅读全文
posted @ 2021-09-23 17:11 是凉城吖 阅读(62) 评论(0) 推荐(0) 编辑