Use *bytes.Buffer, *bytes.Reader, or *strings.Reader if you would like Content-Length being set in the HTTP client request sent.
*bytes.Buffer
*bytes.Reader
*strings.Reader
Content-Length
I had the chance to attend this year’s YOW! Singapore 2019 and tl;dr, there were several great sharings!
Background
I have been using Go for 4 years. For the most part, Go is a very great language. However, I always found something is lacking/missing. There are things that Go…