Open Dafaque opened 1 year ago
@hexdigest I'm sorry for answering so late, the problem was very simple, when we mapping the types of files we also check if the type is the target, if is then we save in selectedType
, but this func has two purpose, first is mapping the types and second is return the target type. The fix was just change a return
to continue
, but if you prefer can be removed because there are nothing after this condition.
@Dafaque your example it wasn't working because the nested struct was declared after the target struct, but already is working with this PR https://github.com/hexdigest/gowrap/pull/68. Here is an example:
Thanx a lot!
proofOfBug.tpl:
proofOfBug.go:
version 1.2.7 did not ignore nesteds