go
go copied to clipboard
Non global RegisterXXXEncoder and RegisterXXXDecoder
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.