页首Html代码

返回顶部
摘要: golang 在多协程下, 不清楚谁是 sender 谁是 recver 的时候, close(chan) 和 chan<-data 两个都很容易报错 原则: //1 close 永远和data分离, 不要close 还会发送或接受的 channel //2 close 永远要做好 'close o 阅读全文
posted @ 2020-12-17 16:57 ayanmw 阅读(532) 评论(0) 推荐(0) 编辑

页脚Html代码