Registry / testing / ipfs-go-detect-race

ipfs-go-detect-race

JSON →
library0.0.1gogounverified

Package go-detect-race provides utilities to detect if the race detector is enabled at runtime.

go get github.com/ipfs/go-detect-race
INSTALL
IMPORT
SIG · IPFS-GO-DETECT-RAC
I
ipfs-go-detect-race
testinggov0.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

detectrace
github.com/ipfs/go-detect-race

Check if race detector is active

package main import ( "fmt" "github.com/ipfs/go-detect-race" ) func main() { if detectrace.WithRace() { fmt.Println("Race detector enabled") } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
ipfs-go-detect-race — go get ipfs-go-detect-race · libregistry