Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTargetNotPointer = errors.New("unable to set value of non-pointer") ErrInvalidOctetStreamType = errors.New("unable to unmarshal octet-stream type") ErrInvalidJsonType = errors.New("unable to unmarshal json type") ErrUnableMarshalMimeType = errors.New("unable to marshal with unknown mime type") ErrUnableUnmarshalMimeType = errors.New("unable to unmarshal with unknown mime type") )
Functions ¶
func DecodeAndBind ¶ added in v1.36.0
Types ¶
type MimeType ¶
type MimeType string
const ( MimeTypeJson MimeType = "application/json" MimeTypeText MimeType = "application/text" MimeTypeOctetStream MimeType = "application/octet-stream" MimeTypeImageJpeg MimeType = "image/jpeg" MimeTypeImagePng MimeType = "image/png" MimeTypeImageGif MimeType = "image/gif" MimeTypeImageSvg MimeType = "image/svg" TypeApplication = "application" TypeImage = "image" )
Click to show internal directories.
Click to hide internal directories.