我有一个需要循环发送消息的函数。问题是在范围内是一个.为什么,以及如何修复它?stopCsstruct{}{}stopCintfunc myfunc() { var stopCs []chan struct{} // Append to stopCs return func() { for stopC := range stopCs { stopC <- struct{}{} } }
- 1 回答
- 0 关注
- 107 浏览
添加回答
举报
0/150
提交
取消