fix build
Mitchell Hashimoto
3 years ago
784 | 784 | |
785 | 785 | for i := 0; i < dataVal.Len(); i++ { |
786 | 786 | err := d.decode( |
787 | name + "[" + strconv.Itoa(i) + "]", | |
787 | name+"["+strconv.Itoa(i)+"]", | |
788 | 788 | dataVal.Index(i).Interface(), val) |
789 | 789 | if err != nil { |
790 | 790 | return err |
817 | 817 | } |
818 | 818 | |
819 | 819 | for _, k := range dataVal.MapKeys() { |
820 | fieldName := name + "[" + k + "]" | |
820 | fieldName := name + "[" + k.String() + "]" | |
821 | 821 | |
822 | 822 | // First decode the key into the proper type |
823 | 823 | currentKey := reflect.Indirect(reflect.New(valKeyType)) |
1061 | 1061 | } |
1062 | 1062 | currentField := valSlice.Index(i) |
1063 | 1063 | |
1064 | fieldName := name + "[" + strconv.Itoa(num) + "]" | |
1064 | fieldName := name + "[" + strconv.Itoa(i) + "]" | |
1065 | 1065 | if err := d.decode(fieldName, currentData, currentField); err != nil { |
1066 | 1066 | errors = appendErrors(errors, err) |
1067 | 1067 | } |