go icon indicating copy to clipboard operation
go copied to clipboard

Non global RegisterXXXEncoder and RegisterXXXDecoder

Open Segflow opened this issue 4 years ago • 0 comments

After reading the code, I believe that once we register a type, struct field encoder/decoder, they get registered globally.

Any reason for this?

How can I have different encoder for the same type? let's say endpoint A needs to encode a type X in a way different then how endpoint B.

Segflow avatar Feb 10 '21 12:02 Segflow