Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BodyFormat ¶
type BodyFormat interface { // // Serialize object to byte array // Serialize(interface{}) ([]byte, error) // // Parse byte array to object // Parse([]byte, interface{}) error // // Get format type as string // GetType() string }
BodyFormat is interface for yamp body format
type JsonBodyFormat ¶
type JsonBodyFormat struct{}
JsonBodyFormat
func (*JsonBodyFormat) Parse ¶
func (this *JsonBodyFormat) Parse(data []byte, v interface{}) error
Deserialize JSON
func (*JsonBodyFormat) Serialize ¶
func (this *JsonBodyFormat) Serialize(obj interface{}) ([]byte, error)
Serialize JSON
Click to show internal directories.
Click to hide internal directories.