signed vs unsigned integers #392
Answered
by
alecthomas
caio-northfleet-neon
asked this question in
Q&A
-
Hi,
In particular, I am trying to use the protobuf example to parse some .proto files, but one of them has a message constructed like the following:
The parser does not know that the Any ideas? |
Beta Was this translation helpful? Give feedback.
Answered by
alecthomas
Mar 14, 2024
Replies: 1 comment 3 replies
-
I typically parse into |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The lexer doesn't handle
big.Int
, it's the parser, and it works becausebig.Int
implementsencoding.TextUnmarshaler
which Participle supports natively. You just need to replaceint
with*big.Int
.