📜  致命错误:并发映射写入 - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:54.037000             🧑  作者: Mango

代码示例1
var mutex = &sync.Mutex{}

mutex.Lock()
ActiveInstances[i_id] = make(chan string, 5)
mutex.Unlock()