Documentation ¶
Index ¶
- Variables
- type Parse
- type Parser
- func (p *Parser) File(filename string) (form.Multipart, error)
- func (p *Parser) Files(filesname ...string) ([]form.Multipart, error)
- func (p *Parser) Json(target any) error
- func (p *Parser) MustFile(filename string) form.Multipart
- func (p *Parser) MustFiles(filesnames ...string) []form.Multipart
- func (p *Parser) MustJson(target any)
- func (p *Parser) MustPathValue(key string, target any)
- func (p *Parser) MustQuery(key string, target any)
- func (p *Parser) MustText() string
- func (p *Parser) MustUrl(target any)
- func (p *Parser) MustXml(target any)
- func (p *Parser) PathValue(key string, target any) error
- func (p *Parser) Query(key string, target any) error
- func (p *Parser) Text() (string, error)
- func (p *Parser) Url(target any) error
- func (p *Parser) Xml(value any) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorInvalidMultipart = errors.New("request has not multipart content type") ErrorOpenFile = errors.New("file cannot be opened") ErrorReadData = errors.New("cannot read data") ErrorPointerTarget = errors.New("target must be a pointer") ErrorQueryMissing = errors.New("query param is missing") ErrorPathValueMissing = errors.New("path value is missing") )
Functions ¶
This section is empty.
Types ¶
type Parse ¶
type Parse interface { Query(key string, target any) error PathValue(key string, target any) error File(filename string) (form.Multipart, error) Files(filesnames ...string) ([]form.Multipart, error) Json(target any) error Text() (string, error) Xml(target any) error Url(target any) error MustQuery(key string, target any) MustPathValue(key string, target any) MustFile(filename string) form.Multipart MustFiles(filesnames ...string) []form.Multipart MustJson(target any) MustText() string MustXml(target any) MustUrl(target any) }
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func (*Parser) MustPathValue ¶
Click to show internal directories.
Click to hide internal directories.