Does connect-go work with Opaque API? #876
Answered
by
jhump
sfc-gh-shliu
asked this question in
Q&A
-
See title: |
Beta Was this translation helpful? Give feedback.
Answered by
jhump
Sep 10, 2025
Replies: 1 comment
-
@sfc-gh-shliu, yes. That only impacts the API of generated code. But connect-go does not interact with messages via their generated methods. It only requires that the types implement |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
nicksnyder
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@sfc-gh-shliu, yes. That only impacts the API of generated code. But connect-go does not interact with messages via their generated methods. It only requires that the types implement
proto.Message
, so they can be passed to functions likeproto.Marshal
andproto.Unmarshal
. In fact, you don't even need to use generated messages: connect-go can work with*dynamicpb.Message
, too.