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

Import is used? #87

Open
ZergsLaw opened this issue May 4, 2024 · 3 comments
Open

Import is used? #87

ZergsLaw opened this issue May 4, 2024 · 3 comments
Labels
question Further information is requested

Comments

@ZergsLaw
Copy link

ZergsLaw commented May 4, 2024

How I can get information - import is used or not?

@yoheimuta
Copy link
Owner

@yoheimuta yoheimuta added the question Further information is requested label May 5, 2024
@ZergsLaw
Copy link
Author

ZergsLaw commented May 5, 2024

I mean, is there a way to check that a specific import is being used?

For example - myVarWithImport.IsUsed() ?

@12345dotblue
Copy link

@ZergsLaw Yes. Import is defined in https://pkg.go.dev/github.com/yoheimuta/go-protoparser/v4@v4.10.0/parser#Import. You can see the example output here:https://github.com/yoheimuta/go-protoparser/blob/master/README.md?plain=1#L129-L148.

How to set the include path which contains the proto files ?

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

No branches or pull requests

3 participants