Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetJSONResponseType ¶
func SetJSONResponseType(resp http.ResponseWriter, code int)
SetJSONResponseType hard set encode type as JSON UTF-8
Types ¶
type Marshaler ¶
type Marshaler interface {
SetIdent(string)
Encode(io.Writer, interface{}) error
Marshal(interface{}) ([]byte, error)
SetUseProtoNames(bool)
SetUseEnumNumbers(bool)
SetEmitUnpopulated(bool)
}
Marshaler marshaler interface
type Unmarshaler ¶
type Unmarshaler interface {
Decode(io.ReadCloser, interface{}) error
Unmarshal([]byte, interface{}) error
}
Unmarshaler unmarshaler interface
Click to show internal directories.
Click to hide internal directories.