From 08875b30d628e72616d24e5a0f0c4b528c8c31e6 Mon Sep 17 00:00:00 2001 From: mopemoepe Date: Wed, 16 Jul 2014 14:18:45 +0900 Subject: [PATCH] Fix variadic parameter --- gin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gin.go b/gin.go index 7acddbd..4d76872 100644 --- a/gin.go +++ b/gin.go @@ -464,7 +464,7 @@ func (c *Context) BindWith(obj interface{}, b binding.Binding) bool { } func (c *Context) Render(code int, render render.Render, obj ...interface{}) { - if err := render.Render(c.Writer, code, obj); err != nil { + if err := render.Render(c.Writer, code, obj...); err != nil { c.ErrorTyped(err, ErrorTypeInternal, obj) c.Abort(500) }