How to: [⏫](#contents) Detect goroutine leaks with [goleak](https://github.com/uber-go/goleak)
Instrument your test cases with verification call. Alternatively, you can add single call in `TestMain`. This tool was recommended by Pyroscope in [blog](https://grafana.com/blog/2023/04/19/how-to-troubleshoot-memory-leaks-in-go-with-grafana-pyroscope/). — Uber

```go
func TestA(t *testing.T) {
  defer goleak.VerifyNone(t)
  ...
}
```

Requirements
```
go get -u go.uber.org/goleak
```