+3 new
version: "1.0.1"
Use:
go test -race ./...
For a specific package:
go test -race ./path/to/package
For a single test:
go test -race ./path/to/package -run TestName
The -race flag enables Go’s race detector to catch data races during the test run.
-race