runtime: panic in mapaccess2_faststr (suspected data race) #65115
The text was updated successfully, but these errors were encountered:
That map variable is global, and is accessed by global functions, but there is no mutex. Global functions are generally expected to be concurrency-safe, so I suspect they were called from two concurrent goroutines, causing the the map data structure to become corrupted.
Try running your tests with go test -race.