Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Serializer ¶
type Serializer struct{}
func (Serializer) Deserialize ¶
func (d Serializer) Deserialize(c echo.Context, i interface{}) error
Deserialize reads a JSON from a request body and converts it into an interface.
func (Serializer) Serialize ¶
func (d Serializer) Serialize(c echo.Context, i interface{}, indent string) error
Serialize converts an interface into a json and writes it to the response. You can optionally use the indent parameter to produce pretty JSONs.
Click to show internal directories.
Click to hide internal directories.