Skip to content

Commit

Permalink
Merge pull request #1475 from rocinantex/v12
Browse files Browse the repository at this point in the history
fix bug: abount dependency injection

Former-commit-id: d163c85d43e6e1db3f7858eefd6b6c654cb541c6
  • Loading branch information
kataras authored Mar 23, 2020
2 parents 08403f0 + 28bb5c5 commit f19da31
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hero/di/reflect.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,13 @@ func lookupFields(elemTyp reflect.Type, skipUnexported bool, parentIndex []int)
index = append(parentIndex, i)
}

tmp := make([]int, len(index))
copy(tmp, index)

field := field{
Type: f.Type,
Name: f.Name,
Index: index,
Index: tmp,
CanSet: isExported,
}

Expand Down

0 comments on commit f19da31

Please sign in to comment.