go-protoparser
go-protoparser copied to clipboard
Import is used?
How I can get information - import is used or not?
@ZergsLaw Yes. Import is defined in https://pkg.go.dev/github.com/yoheimuta/go-protoparser/[email protected]/parser#Import. You can see the example output here:https://github.com/yoheimuta/go-protoparser/blob/master/README.md?plain=1#L129-L148.
I mean, is there a way to check that a specific import is being used?
For example - myVarWithImport.IsUsed() ?
@ZergsLaw Yes. Import is defined in https://pkg.go.dev/github.com/yoheimuta/go-protoparser/[email protected]/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 ?