golang / protobuf

Go support for Google's protocol buffers
BSD 3-Clause "New" or "Revised" License
9.79k stars 1.58k forks source link

--gofast_out option in protoc discards inline comments from .proto files #1629

Closed charlie103 closed 4 months ago

charlie103 commented 4 months ago

When using the --gofast_out option with protoc to generate Go code, inline comments from the .proto files are discarded. This behavior is different from the --go_out option, which retains these comments. I would like to understand the reason behind this difference and if there is a way to preserve inline comments while using --gofast_out.

puellanivis commented 4 months ago

We don’t maintain the protoc-gen-gofast plugin. You would have to ask them. https://github.com/gogo/protobuf/blob/v1.3.2/protoc-gen-gofast