Registry / utility / sasha-s-go-deadlock

sasha-s-go-deadlock

JSON →
library0.3.9gogounverified

Provides deadlock detection for Go mutexes and RWMutexes, replacing sync.Mutex and sync.RWMutex with wrappers that detect potential deadlocks.

go get github.com/sasha-s/go-deadlock
INSTALL
IMPORT
SIG · SASHA-S-GO-DEADLOC
S
sasha-s-go-deadlock
utilitygov0.3.9
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.

deadlock
github.com/sasha-s/go-deadlock

Use a deadlock-detecting mutex

import "github.com/sasha-s/go-deadlock" func main() { var mu deadlock.Mutex mu.Lock() mu.Unlock() }
Debug
Known issues
gotchaDeadlock detection adds overhead; use only in development/testing
fix
Replace with sync.Mutex in production builds
affects: *
Upgrade
Version history
0.3.9latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Amazon
1
Resources
sasha-s-go-deadlock — go get sasha-s-go-deadlock · libregistry