摘要: 一、只有一个goroutine时,读写阻塞的chan会出错(“fatal error: all goroutines are asleep - deadlock!”)。包括未make的chan(chan = nil) 二、已经close的chan,写操作会panic(“panic: send on 阅读全文
posted @ 2018-04-01 16:58 YYRise 阅读(175) 评论(0) 推荐(0) 编辑