context.go
func (c *Context) Respond(value interface{}) error {
	// encode response
	bytes, err := json.Marshal(value)
	if err != nil {
		return err
	}

	// write token
	_, err = c.ResponseWriter.Write(bytes)
	if err != nil {
		return err
	}

	return nil
}
func (c *Context) Respond(value interface{}) error {
	// encode response
	bytes, err := json.Marshal(value)
	if err != nil {
		return err
	}

	// write token
	_, err = c.ResponseWriter.Write(bytes)
	if err != nil {
		return err
	}

	return nil
}
// Respond will encode the provided value as JSON and write it to the client.