News for hackers. Stuff that matters.
Re:Google’s Go Style Guide by gogogogogogo on Friday November 18, 2022 @02:46PM (#33660958)
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.

Re:Google’s Go Style Guide by gbalduzzi on Monday November 21, 2022 @06:42AM (#33691476)
The request type is just an example, of course, building up from the example in the comment I was replying to.