Merge pull request #113 from awprice/issue-112

fix(angryjet): support pointers to structs
This commit is contained in:
Jared Watts 2025-07-24 23:23:23 -07:00 committed by GitHub
commit 29da025346
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -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
}