{"id":50420,"library":"goleak","title":"goleak","description":"Goroutine leak detector for Go tests, ensuring no goroutines are leaked after test completion.","status":"active","version":"1.3.0","language":"go","source_language":null,"source_url":null,"tags":["testing","goroutine","leak","detector"],"install":[{"cmd":"go get go.uber.org/goleak","lang":"bash","label":"Install go.uber.org/goleak"}],"dependencies":[],"imports":[{"symbol":"goleak","correct":"go.uber.org/goleak"}],"quickstart":{"code":"package main\n\nimport (\n\t\"testing\"\n\t\"go.uber.org/goleak\"\n)\n\nfunc TestSomething(t *testing.T) {\n\tdefer goleak.VerifyNone(t)\n\t// test code that should not leak goroutines\n}","lang":"go","description":"Verify no goroutines are leaked in a test function."},"warnings":[{"fix":"Use goleak.IgnoreCurrent() to exclude goroutines already running before the test.","message":"goleak may report false positives if goroutines are started by background processes (e.g., GC, profiling).","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'complet':15 'detector':4,19 'ensur':8 'go':6 'goleak':1 'goroutin':2,10,17 'leak':3,12,18 'test':7,14,16","created_at":"2026-06-15T04:52:33.940135+00:00","updated_at":"2026-06-15T04:52:33.940135+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/uber-go/goleak","github":null,"docs":"https://pkg.go.dev/go.uber.org/goleak#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"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}}