Hacker News new | ask | show | jobs
by gogogogogogo 1306 days ago
The real question from this example is: why are you creating two http requests in the same scope before using them?

I've been writing Go cloud stuff for the better part of a decade and "req" for a request has never been ambiguous because I go ahead and send the request and process the response before sending another one, at which point I can just reassign the variable and let the first one fall out of scope.

1 comments

The request type is just an example, of course, building up from the example in the comment I was replying to.