yoheimuta / go-protoparser

Yet another Go package which parses a Protocol Buffer file (proto2+proto3)
MIT License
166 stars 20 forks source link

add extensions field to Message struct so interpreting proto file wi… #78

Closed jcheng8 closed 1 year ago

jcheng8 commented 1 year ago

…th extensions would not fail

@yoheimuta I created this pull request by adding a slice field to Message struct. Even though I see only one extenisons is defined per message, I don't see anywhere in the spec whether only one extensions declaration is allowed, so I am adding it as a slice instead of a pointer field. Of course, the name Extensions is kind of awkward.

jcheng8 commented 1 year ago

runtests