I think we can all agree that we did not enjoy writing unit tests when we first started coding. We want to write for new features and maybe some occasional bug fixes.
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