Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
x/tools/analysis/passes/httpresponse: check whether http.Response Body is closed. #31131
httpresponse really helps you to avoid a mistake when using net/http package.
So I recently created own linter to check "whether you call
After I released, I realized it might be better if an official
We already have a check that does something very similar to this: lostcancel, which looks for calls of the form
I suggest we fork that analysis, adapt it to this problem, then try to identify the generalization, as I'm sure there are many other functions that users would designate for this analysis, like they do for