DEV Community

Discussion on: It's Been Three Months Since My First Go LoC 🤓 🎓

Collapse
 
jeromelaforge profile image
Jérôme Laforge

For me, the reading the body of request (or response in case of HTTP client) is not a big deal. You can easily define helper function that read all Body, create a new io.Reader then return read Body as bytes array.

For me (and also for Go maintener net/http Brad Fitzpatrick), HTTP client has to be improved (c.f. github.com/bradfitz/exp-httpclient) and will be.

Collapse
 
biros profile image
Boris Jamot ✊ /

Hi Jérôme, it's fun to see you here on dev.to!
What's the weather like in caen?
What you suggest with creating an io.Reader proves what I said above : many trivial things in popular languages can become complicated in Go.

Collapse
 
jeromelaforge profile image
Jérôme Laforge • Edited

What's the weather like in caen?

cloudy ...

What you suggest with creating an io.Reader proves what I said above : many trivial things in popular languages can become complicated in Go.

Maybe, but many complicated things in popular languages become trivial in Go ;) (Concurency, very good performance on tiny configuration, async task without tuning your thread pool, deploy on "From Scratch" docker's image and so on).