3 ms·
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 be
by gogogogogogo 4y 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.
- gbalduzzi 4y agoThe request type is just an example, of course, building up from the example in the comment I was replying to.