-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Create a guide for proto.Message String() methods #12908
Comments
What do you mean by "format Proto messages"? |
Creating human friendly representation of a proto.Message, usually it's done in the |
My opinion is that developers shouldn't be implementing proto message String methods by hand. The official proto compiler does it automatically. It's only because of some gogo options this is even allowed |
I'm struggling to understand the proposal. Isn't this just making sure we don't include |
@alexanderbez the proposal is to create a guide / recommendation, in an documentation. Because as we can see, it's clear for developers. |
Summary
yaml
Marshaller.yaml
marshalling is not supported any more, can produce wrong output or not display some fields at all (egsdk.Uint
). One workaround is to go through JSON (msg -> json -> map -> yaml)Proposal
Create a guide or an antipattern guide explaining proper way to format proto Messages.
Ref: #12880 (comment)
The text was updated successfully, but these errors were encountered: