form

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_MEMORY = 32 << 20
)
View Source
const (
	MIME_MULTIPART_FORM = "multipart/form-data"
)
View Source
const (
	MIME_POST_FORM = "application/x-www-form-urlencoded"
)

Variables

View Source
var (

	// ErrConvertMapStringSlice can not covert to map[string][]string
	ErrConvertMapStringSlice = errors.New("can not convert to map slices of strings")

	// ErrConvertToMapString can not convert to map[string]string
	ErrConvertToMapString = errors.New("can not convert to map of strings")
)
View Source
var (
	// ErrMultiFileHeader multipart.FileHeader invalid
	ErrMultiFileHeader = errors.New("unsupported field type for multipart.FileHeader")

	// ErrMultiFileHeaderLenInvalid array for []*multipart.FileHeader len invalid
	ErrMultiFileHeaderLenInvalid = errors.New("unsupported len of array for []*multipart.FileHeader")
)

Functions

func MapFormWithTag

func MapFormWithTag(ptr interface{}, form map[string][]string, tag string) error

func NewEntityAccessorMultipartForm

func NewEntityAccessorMultipartForm() restful.EntityReaderWriter

NewEntityAccessorJSON returns a new EntityReaderWriter for accessing Form content. This package is already initialized with such an accessor using the MIME_POST_FORM contentType.

func NewEntityAccessorPostForm

func NewEntityAccessorPostForm() restful.EntityReaderWriter

NewEntityAccessorJSON returns a new EntityReaderWriter for accessing Form content. This package is already initialized with such an accessor using the MIME_POST_FORM contentType.

Types

This section is empty.

Jump to

Keyboard shortcuts

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