From 3fbd60ec33dfe58685b6fe810c51429eef0affe7 Mon Sep 17 00:00:00 2001 From: Sam Woodard Date: Mon, 6 Jul 2015 13:41:38 -0700 Subject: [PATCH] reorg --- request.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/request.go b/request.go index 65aabdf..7662fe4 100644 --- a/request.go +++ b/request.go @@ -14,8 +14,9 @@ func UnmarshalJsonApiPayload(payload *JsonApiPayload, model interface{}) error { modelType := reflect.TypeOf(model).Elem() modelValue := reflect.ValueOf(model).Elem() - var i = 0 var er error + + var i = 0 modelType.FieldByNameFunc(func(name string) bool { fieldType := modelType.Field(i) fieldValue := modelValue.Field(i)