You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any interest in supporting special handling for types that know how to serialize themselves into a binary representation? encoding/json supports calling a given object's encoding.TextMarshaler and encoding.TextUnmarshaler implementations if provided, as does the go-codec library.
For CBOR the binary equivalents probably make more sense. I've started poking at this in a local branch, and while the encoding side was straightforward to add, the decoding side is a bit more involved due to parseInterface.
The text was updated successfully, but these errors were encountered:
The commit from 3 days ago appears to work. I'm still in the progress of migrating the codebase I wanted this for, but all of the issues encountered so far are "the code is dependent on how the old library did certain things".
Is there any interest in supporting special handling for types that know how to serialize themselves into a binary representation?
encoding/json
supports calling a given object'sencoding.TextMarshaler
andencoding.TextUnmarshaler
implementations if provided, as does the go-codec library.For CBOR the binary equivalents probably make more sense. I've started poking at this in a local branch, and while the encoding side was straightforward to add, the decoding side is a bit more involved due to
parseInterface
.The text was updated successfully, but these errors were encountered: