{"id":50359,"library":"sasha-s-go-deadlock","title":"go-deadlock","description":"Provides deadlock detection for Go mutexes and RWMutexes, replacing sync.Mutex and sync.RWMutex with wrappers that detect potential deadlocks.","status":"active","version":"0.3.9","language":"go","source_language":null,"source_url":"https://github.com/sasha-s/go-deadlock","tags":["deadlock","mutex","debugging","concurrency"],"install":[{"cmd":"go get github.com/sasha-s/go-deadlock","lang":"bash","label":"Install github.com/sasha-s/go-deadlock"}],"dependencies":[],"imports":[{"symbol":"deadlock","correct":"github.com/sasha-s/go-deadlock"}],"quickstart":{"code":"import \"github.com/sasha-s/go-deadlock\"\n\nfunc main() {\n    var mu deadlock.Mutex\n    mu.Lock()\n    mu.Unlock()\n}","lang":"go","description":"Use a deadlock-detecting mutex"},"warnings":[{"fix":"Replace with sync.Mutex in production builds","message":"Deadlock detection adds overhead; use only in development/testing","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"search_vec":"'concurr':25 'deadlock':3,5,21,22 'debug':24 'detect':6,19 'go':2,8 'go-deadlock':1 'mutex':9,23 'potenti':20 'provid':4 'replac':12 'rwmutex':11 'sync.mutex':13 'sync.rwmutex':15 'wrapper':17","created_at":"2026-06-15T04:50:26.322822+00:00","updated_at":"2026-06-15T04:50:26.322822+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/sasha-s/go-deadlock","github":"https://github.com/sasha-s/go-deadlock","docs":"https://pkg.go.dev/github.com/sasha-s/go-deadlock#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}