Codebase list golang-github-mitchellh-mapstructure / c0eda12
fix build Mitchell Hashimoto 3 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
784784
785785 for i := 0; i < dataVal.Len(); i++ {
786786 err := d.decode(
787 name + "[" + strconv.Itoa(i) + "]",
787 name+"["+strconv.Itoa(i)+"]",
788788 dataVal.Index(i).Interface(), val)
789789 if err != nil {
790790 return err
817817 }
818818
819819 for _, k := range dataVal.MapKeys() {
820 fieldName := name + "[" + k + "]"
820 fieldName := name + "[" + k.String() + "]"
821821
822822 // First decode the key into the proper type
823823 currentKey := reflect.Indirect(reflect.New(valKeyType))
10611061 }
10621062 currentField := valSlice.Index(i)
10631063
1064 fieldName := name + "[" + strconv.Itoa(num) + "]"
1064 fieldName := name + "[" + strconv.Itoa(i) + "]"
10651065 if err := d.decode(fieldName, currentData, currentField); err != nil {
10661066 errors = appendErrors(errors, err)
10671067 }