Documentation ¶ Index ¶ func Marshal(value any) (data []byte, contentType string, err error) type File Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Marshal ¶ func Marshal(value any) (data []byte, contentType string, err error) Marshal encodes the given value into a multipart/form-data request body. The value must be a struct or a pointer to a struct. If the field implements the File interface, the field is marshaled as a file. Types ¶ type File ¶ type File interface { Name() string io.Reader } File represents a file to be marshaled into a multipart/form-data request body. Source Files ¶ View all Source files marshal.go Click to show internal directories. Click to hide internal directories.