Skip to content

Glossary: Go in Practice

Data race

Also written: data races, -race, race detector, go test -race

Two goroutines using the same memory at once, with at least one writing. `go test -race` runs tests with the race detector, which finds them.

Where the book teaches it

Related terms

atomic.Int64WaitGroup