Documentation ¶
Index ¶
- Constants
- Variables
- func Decode(r io.Reader, i interface{}, t string) error
- func Encode(w io.Writer, i interface{}, t string) error
- func Marshal(i interface{}, t string) ([]byte, error)
- func Register(t string, handle Interface) error
- func Unmarshal(b []byte, i interface{}, t string) error
- type Binder
- func (this *Binder) Decode(r io.Reader, i interface{}) (err error)
- func (this *Binder) Encode(w io.Writer, i interface{}) (err error)
- func (this *Binder) Marshal(i interface{}) (b []byte, err error)
- func (this *Binder) String() string
- func (this *Binder) Unmarshal(b []byte, i interface{}) (err error)
- type Interface
Constants ¶
View Source
const ( MIMEJSON string = "application/json" MIMEXML = "application/xml" MIMEXML2 = "text/xml" MIMEPOSTForm = "application/x-www-form-urlencoded" MIMEMultipartPOSTForm = "multipart/form-data" MIMEPROTOBUF = "application/x-protobuf" MIMEMSGPACK = "application/x-msgpack" MIMEMSGPACK2 = "application/msgpack" MIMEYAML = "application/x-yaml" )
Content-Type MIME of the most common data formats.
View Source
const ContentType = "Content-Type"
Variables ¶
View Source
var Json = jsonBinding{}
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.