# uber-go/goleak

Goroutine leak detector

Repository: https://github.com/uber-go/goleak
Canonical: https://ross.abutalabs.com/products/goleak
Language: Go
License: MIT
License Family: permissive
Last push: 2026-06-02T15:54:04+00:00

## Health v2 (maintenance only)
Score: 61/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 85, release rhythm 8, longevity 100
- inputs: {"age_days": 3226, "days_push": 92, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5263, forks 173 (observed 2026-08-28T04:09:13.850155+00:00)

## What it is
goleak is a Go library from Uber that detects goroutine leaks in tests by verifying no unexpected goroutines remain after test execution. It integrates with the standard testing package via VerifyNone or VerifyTestMain.

## Use cases
- detect goroutine leaks in go tests
- verify no leaked goroutines after test suite
- find which test leaks goroutines
- add leak checking to TestMain
- catch concurrency bugs in go packages

## When to choose
- you write Go tests and want to catch goroutine leaks automatically
- you maintain a Go library where leaked goroutines could affect users
- you want a lightweight, stable (SemVer v1) leak detector

## When to avoid
- your tests use t.Parallel heavily, which goleak cannot distinguish from leaks
- you need general race or deadlock detection rather than leak checking
- you are not working in Go

## Facets
- artifact type: library
- maturity: stable
- function: testing, developer-tools
- domain: developer-tools, testing
- platform: go, cli
- tags: goroutine-leak-detection, go-testing, concurrency-debugging

## Member repositories
- uber-go/goleak (main) score 61

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:13.850155+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:59:30.602681+00:00, confidence not recorded.
  - readme: https://github.com/uber-go/goleak (fetched 2026-08-28T04:09:13.850155+00:00, sha e9361a2e9f22)
- Data as of 2026-08-30T08:39:29.467469+00:00.
