The following source code is a test of mine to generate a content based on a struct for several types of content type formats:
- JSON format.
- XML (with and without headers) format.
- url.Values (encoded) format.
- Multipart form data format.
The test is made to provide me some examples on doing so when I require the reference itself.
WTFPL – Do What the Fuck You Want to Public License