parser

package
v1.1.15 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapFormByTag

func MapFormByTag(ptr any, form map[string][]string, tag string) error

Types

type ApplicationFormUrlencodedParser

type ApplicationFormUrlencodedParser struct{}

func (*ApplicationFormUrlencodedParser) Parse

func (a *ApplicationFormUrlencodedParser) Parse(src io.Reader, dst reflect.Value) (err error)

func (*ApplicationFormUrlencodedParser) PreParse

func (a *ApplicationFormUrlencodedParser) PreParse(args map[string]string) error

type ApplicationJsonParser

type ApplicationJsonParser struct{}

func (*ApplicationJsonParser) Parse

func (a *ApplicationJsonParser) Parse(src io.Reader, dst reflect.Value) (err error)

func (*ApplicationJsonParser) PreParse

func (a *ApplicationJsonParser) PreParse(args map[string]string) error

type MultipartFormDataParser

type MultipartFormDataParser struct {
	// contains filtered or unexported fields
}

func (*MultipartFormDataParser) Parse

func (m *MultipartFormDataParser) Parse(src io.Reader, dst reflect.Value) (err error)

func (*MultipartFormDataParser) PreParse

func (m *MultipartFormDataParser) PreParse(args map[string]string) error

type Parser

type Parser interface {
	PreParse(args map[string]string) error
	Parse(src io.Reader, dst reflect.Value) error
}

func GetByContentType

func GetByContentType(typ string) (parser Parser, err error)

Jump to

Keyboard shortcuts

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