Documentation
¶
Index ¶
- func GetString(obj interface{}) string
- func Marshal(contentType string, v interface{}) ([]byte, error)
- func Register(alias string, contentTypes []string, parser BodyParserInterface)
- func Unmarshal(contentType string, data []byte, v interface{}) error
- type BodyParserInterface
- type FormParser
- type JsonParser
- type TextParser
- type XmlParser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(alias string, contentTypes []string, parser BodyParserInterface)
Types ¶
type BodyParserInterface ¶
type FormParser ¶
type FormParser struct{}
func (*FormParser) Marshal ¶
func (p *FormParser) Marshal(v interface{}) ([]byte, error)
func (*FormParser) Unmarshal ¶
func (p *FormParser) Unmarshal(data []byte, v interface{}) error
type JsonParser ¶
type JsonParser struct{}
func (*JsonParser) Marshal ¶
func (p *JsonParser) Marshal(v interface{}) ([]byte, error)
func (*JsonParser) Unmarshal ¶
func (p *JsonParser) Unmarshal(data []byte, v interface{}) error
type TextParser ¶
type TextParser struct{}
func (*TextParser) Marshal ¶
func (p *TextParser) Marshal(v interface{}) ([]byte, error)
func (*TextParser) Unmarshal ¶
func (p *TextParser) Unmarshal(data []byte, v interface{}) error
Click to show internal directories.
Click to hide internal directories.