摘要: 一、map并发读写问题 如果map由多协程同时读和写就会出现 fatal error:concurrent map read and map write的错误 如下代码很容易就出现map并发读写问题 func main(){ c := make(map[string]int) go func() { 阅读全文
posted @ 2018-12-02 14:32 割肉机 阅读(1956) 评论(0) 推荐(0) 编辑