Won't this return the last input entered by any user, regardless of who clicks? The spirit of the arc challenge is to output what you typed, not what anyone types.
So basically this doesn't meet the challenge requirements, the code looks ugly, and yet this is one of the most upvoted stories on HN today?
Would anyone have cared if this was done in VB? I realize Google has done lots of cool and impressive stuff, but Google-fandom should only be able to go that far, and this is way beyond.
Yeah, I agree it isn't the most elegant way to do it, but the alternative is to keep a copy of go's http package in the gocouch repo, which isn't too elegant either.
My guess is that within a couple months Go will have a new http client that's fully-featured (keep-alive requests, authentication, and support for generic requests). Until then, if people have a burning need to use gocouch, they'll have to add that small method to the http package. Plus, people are used to compiling the go source code because it's the only way to install it (no binary packages yet)
Its not really an issue of elegance. Either way is not pleasing, but given that your code is the only consumer of the exposed http.Send, my recommendation is that you isolate your end users from the Go.http's evolution by including the (dup) code in your source and removing it when the update release fixes the issue. Transition would be transparent to your end users.