We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I think this might not be the best advice, since it seems like Close() on the *body discards it for you by default
Close()
*body
https://github.com/golang/go/blob/9d23975d89e6cc3df4f2156b2ae0df5d2cef16fb/src/net/http/transfer.go#L979
io.Copy(ioutil.Discard, resp.Body)
Am I missing something?
The text was updated successfully, but these errors were encountered:
Yeah, probably it's oudated. I will take a look this weekend.
Sorry, something went wrong.
No branches or pull requests
I think this might not be the best advice, since it seems like
Close()
on the*body
discards it for you by defaulthttps://github.com/golang/go/blob/9d23975d89e6cc3df4f2156b2ae0df5d2cef16fb/src/net/http/transfer.go#L979
io.Copy(ioutil.Discard, resp.Body)
if you don't use itAm I missing something?
The text was updated successfully, but these errors were encountered: