golang fatal error concurrent map writes code example
Example: fatal error: concurrent map writes
var mutex = &sync.Mutex{}
mutex.Lock()
ActiveInstances[i_id] = make(chan string, 5)
mutex.Unlock()
var mutex = &sync.Mutex{}
mutex.Lock()
ActiveInstances[i_id] = make(chan string, 5)
mutex.Unlock()