Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidContentType represents an unsupported content type error. ErrInvalidContentType = errors.New("invalid content type") // ErrInvalidInterface represents an invalid interface error. ErrInvalidInterface = errors.New("invalid interface") )
Functions ¶
func BindJSON ¶
func BindJSON(v interface{}, out interface{}) error
BindJSON binds JSON data received from request or response to an interface.
func GetContentType ¶
GetContentType returns the HTTP 'Content-Type' header value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.