Use: ```bash go test -race ./... ``` For a specific package: ```bash go test -race ./path/to/package ``` For a single test: ```bash go test -race ./path/to/package -run TestName ``` The `-race` flag enables Go’s race detector to catch data races during the test run.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Golang Concurrency?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hoangnguyen0403-golang-concurrency-ed570bba)
Use:
```bash
go test -race ./...
```
For a specific package:
```bash
go test -race ./path/to/package
```
For a single test:
```bash
go test -race ./path/to/package -run TestName
```
The `-race` flag enables Go’s race detector to catch data races during the test run.