From dcad0df8f777757a9a5eefb5fb0f2bd1a3a932f5 Mon Sep 17 00:00:00 2001 From: Javier Provecho Fernandez Date: Tue, 11 Nov 2014 08:43:48 +0100 Subject: [PATCH] Fix binding.go panic --- binding/binding.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binding/binding.go b/binding/binding.go index a40aa74..72b23df 100644 --- a/binding/binding.go +++ b/binding/binding.go @@ -87,7 +87,7 @@ func mapForm(ptr interface{}, form map[string][]string) error { return err } } - formStruct.Elem().Field(i).Set(slice) + formStruct.Field(i).Set(slice) } else { if err := setWithProperType(typeField.Type.Kind(), inputValue[0], structField); err != nil { return err