questmultipart

package
v0.0.0-...-05c16d4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyEncode

func CopyEncode(w io.Writer, data interface{}) error

func JSONEncode

func JSONEncode(w io.Writer, data interface{}) error

func XMLEncode

func XMLEncode(w io.Writer, data interface{}) error

Types

type Encoder

type Encoder func(io.Writer, interface{}) error

type Form

type Form struct {
	Buffer *bytes.Buffer
	Writer *multipart.Writer
	Err    error
}

func New

func New() *Form

func (*Form) AddField

func (f *Form) AddField(name, value string) *Form

func (*Form) AddFile

func (f *Form) AddFile(fieldName, fileName string, value interface{}, encoder Encoder) *Form

func (*Form) Close

func (f *Form) Close() *Form

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL