-
Notifications
You must be signed in to change notification settings - Fork 13
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
EncodeNested with custom keys #133
Comments
A nested message is encoded as a I'm not exactly sure what you're asking. Can you clarify? |
look at this: Lines 759 to 767 in 5b2bf93
no keys are explicitly given to the Name and Value fields, but if you decode the resulting bytes its discovered that |
I see. That For a real message, the tags would come from the field IDs in the .proto file. |
I see this:
https://godocs.io/github.com/CrowdStrike/csproto#Encoder.EncodeNested
but its not clear what keys are being used. after some testing it seems the code just pick
1
and then2
, etc. is it possible to encode something like this with custom keys?The text was updated successfully, but these errors were encountered: