Merge pull request #113 from awprice/issue-112
fix(angryjet): support pointers to structs
This commit is contained in:
commit
29da025346
|
@ -104,6 +104,12 @@ func findStruct(o types.Object) *types.Struct {
|
|||
return nil
|
||||
}
|
||||
return s
|
||||
case *types.Pointer:
|
||||
s, ok := t.Elem().Underlying().(*types.Struct)
|
||||
if !ok {
|
||||
return nil
|
||||
}
|
||||
return s
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue