multipartform

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MultipartFormField = iota
	MultipartFormFile
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MultipartField

type MultipartField struct {
	Type int
	Name string
}

type MultipartForm

type MultipartForm map[MultipartField]string

func New

func New() MultipartForm

func (MultipartForm) AddField

func (m MultipartForm) AddField(name string, value string)

func (MultipartForm) AddFile

func (m MultipartForm) AddFile(name string, file string)

func (MultipartForm) AddMutualExclusiveFields

func (m MultipartForm) AddMutualExclusiveFields(fields map[string]string)

func (MultipartForm) AddOptionalField

func (m MultipartForm) AddOptionalField(name string, value *string)

Jump to

Keyboard shortcuts

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