-
Notifications
You must be signed in to change notification settings - Fork 811
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
BUG: protoc-gen-gogofast not generate trailing comments #764
Comments
hitzhangjie
changed the title
protoc-gen-gogofast not generate trailing comments
BUG: protoc-gen-gogofast not generate trailing comments
Feb 22, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for example, here's the protobuf:
Then execute the:
protoc --gogofast_out=. hello.proto
, the generated code is:We could see, the trailing comments is not generated, while
protoc-gen-go
will handle both the leading and trailing comments. Please support this style of trailing comments.This style of trailing comments will help align the fields, much clearer. It will improve readability. I won't have to switch between the *.pb.go and *.proto file.
The text was updated successfully, but these errors were encountered: