I created a map that is safe for concurrent access, in each of the operations (or compound operations) I wrapped the operation with a lock.
func .. {
mu.Lock()
defer mu.Unlock()
..
}
Could I use goroutines for this also? Should I be using goroutines?