Go Data Race Detector

Posted on Jul 9, 2022

You can run your Go program or your tests with the Data Race detection enabled. This might cost some performance and memory, but in case a data race is being detected, that’s worth it!

Perfect for your CI!

go run --race ./cmd/app
go test --race ./...