json:struct tags instead of
Content-Typewill be used to know how to deserialize the requests.
binding.MultipartFormdeserializes form data from a request into the struct you pass in. Additionally, this will deserialize a POST request that has a form of
enctype="multipart/form-data". If the bound struct contains a field of type
*multipart.FileHeader), you also can read any uploaded files that were part of the form.