Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
kylequest
· 8y ago · 0 comments
Ping me if you have other gotchas you'd like to add. There'll be a few more soon (JSON, Cgo, etc).
Comments
[–]
isaachawley
8y ago
This is outdated and incorrect
http://devs.cloudimmunity.com/gotchas-and-common-mistakes-in...
[–]
sargas
8y ago
How so?
[–]
isaachawley
8y ago
> On error, any Response can be ignored. A non-nil Response with a non-nil error only occurs when CheckRedirect fails, and even then the returned Response.Body is already closed.
https://golang.org/pkg/net/http/#Client.Do