Skip to content
This repository was archived by the owner on Jan 14, 2022. It is now read-only.
This repository was archived by the owner on Jan 14, 2022. It is now read-only.

Please add some examples for Multipart/form-data bindings #23

@yanfali

Description

@yanfali

Awesome library. I was a little confused and had to do some experimentation on how to use this particular deserializer. I think it would be great if you could add some examples to the docs. Thank you for this library.

e.g.

type MultiPartPostFormRequest struct {
    Metadata *multipart.FileHeader `json:"metadata"`
    Data     *multipart.FileHeader `json:"data"`
}
func (f *MultiPartPostFormRequest) FieldMap() binding.FieldMap {
    return binding.FieldMap{
        &f.Metadata: "metadata",
        &f.Data:     "data",
    }
}

Adding some simple examples on how to use the result data structures would be very helpful too.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions