This commit is contained in:
Sam Woodard 2015-07-06 13:41:38 -07:00
parent 8be7afb2fe
commit 3fbd60ec33
1 changed files with 2 additions and 1 deletions

View File

@ -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)