Skip to content

Glossary: Go Beyond the Basics

race detector

Also written: -race

A tool switched on with `-race` on `go run`, `go build` or `go test` that reports data races while the program runs. It is slow, so use it in tests and development.

Where the book teaches it

Related terms

data racemutex