func (c *Context) Render(code int, r render.Render) { c.writermem.WriteHeader(code) if err := r.Write(c.Writer); err != nil { debugPrintError(err) c.AbortWithError(500, err).SetType(ErrorTypeRender) } }
func (c *Context) Render(code int, render render.Render, obj ...interface{}) { if err := render.Render(c.Writer, code, obj...); err != nil { c.ErrorTyped(err, ErrorTypeInternal, obj) c.Abort(500) } }
func (c *Context) Render(code int, r render.Render) { c.Status(code) if err := r.Render(c.Writer); err != nil { panic(err) } }
func (c *Context) Render(code int, r render.Render) { c.writermem.WriteHeader(code) if err := r.Render(c.Writer); err != nil { c.renderError(err) } }