func Respond(w http.ResponseWriter, r *http.Request, v interface{}) {
	if err, ok := v.(error); ok {
		v = errorf(r, err)
	}

	render.DefaultResponder(w, r, v)
}
// Respond handles streaming JSON and XML responses, automatically setting the
// Content-Type based on request headers. It will default to a JSON response.
Respond handles streaming JSON and XML responses, automatically setting the
Content-Type based on request headers. It will default to a JSON response.
// Respond handles streaming JSON and XML responses automatically setting the // Content - Type based on request headers . It will default to a JSON response .
func Respond(w http.ResponseWriter, r *http.Request, v interface{}) {
	if err, ok := v.(error); ok {
		v = errorf(r, err)
	}
	render.DefaultResponder(w, r, v)
}
func Respond ( w http . ResponseWriter , r * http . Request , v interface { } ) { if err , ok := v . ( error ) ; ok { v = errorf ( r , err ) } render . DefaultResponder ( w , r , v ) }
Respond handles streaming JSON and XML responses, automatically setting the
Content-Type based on request headers.
Respond handles streaming JSON and XML responses automatically setting the Content - Type based on request headers .