Ensure HTTP body closed

Proprietary

Find assignments of a *http.Response, as returned by http.Get, http.Post, http.Head or client.Do. Its body must be closed to avoid resource leaks.

org.openrewrite.golang.codequality.EnsureHttpBodyClosed
mod run . --recipe=org.openrewrite.golang.codequality.EnsureHttpBodyClosed

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.