I have a *types.Package
and I am going through it:
st := pkg.Scope().Lookup("Sprite") // Struct
m := types.NewMethodSet(types.NewPointer(st.Type())).At(0) // Function
How do I get the *ast.FuncDecl
for this method?
I have a *types.Package
and I am going through it:
st := pkg.Scope().Lookup("Sprite") // Struct
m := types.NewMethodSet(types.NewPointer(st.Type())).At(0) // Function
How do I get the *ast.FuncDecl
for this method?
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.