Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it support to get go/types.Object through Ident #72

Open
boringplay opened this issue Feb 28, 2023 · 1 comment
Open

Is it support to get go/types.Object through Ident #72

boringplay opened this issue Feb 28, 2023 · 1 comment

Comments

@boringplay
Copy link

How to implement such code as followed using go/ast:

pkg.TypesInfo.ObjectOf(ident)
@dave
Copy link
Owner

dave commented Feb 28, 2023

Sorry, can you go into a bit more detail what you want to do? I'm having trouble understanding the question. It's possible you might be looking for the mappings feature? https://github.com/dave/dst#mappings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants