Go channel 与锁

Lenix at 
不同 goroutine 之间如何通讯?有两种方案:var ( myMap = make(map[int]int, 10) lock sync.Mutex ) func test(n int) { res := 1 for i := 1; i <= n; i++ { …The post Go channel 与锁 first appeared on Lenix Blog.……