msgpack icon indicating copy to clipboard operation
msgpack copied to clipboard

ext encoders are not used when encoding distinct int types ("enums")

Open Beefster09 opened this issue 2 months ago • 0 comments

If you have an ext encoder for a distinct int type (as is often used for "enums" in Go), then the encoder will still encode it as if it is a regular int instead of encoding it with the ext encoder you specified

Same thing goes for a slice of that particular type. It will not use the encoders for that slice type.

Beefster09 avatar Dec 08 '25 00:12 Beefster09