-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support encoding.BinaryMarshaler/Unmarshaler #40
Comments
Is this considerably different from the support that already exists for TextMarshaler/TextUnmarshaler? What use cases does this have? |
This means supporting types that implement that interface. The support for types that implement a different interface won't make that work. |
This is specifically useful for
I might take a crack at this. |
The same problem reported as a breakage there also looks like an issue for yaml. It's a bit of an awkward choice to trust on the binary encoding of the type to present a nice textual representation. I wonder if it will backfire in other cases, where we'd otherwise get a pleasant representation of the fields, and now get some unreadable binary blob. We might support BinaryMarshaler/Unmarshaler in v3 before it's final, but we'll need to first have a look to understand what the most common conventions are around it. |
ping @niemeyer . This has been a long outstanding issue, what are your thoughts on adding support for this? Any reason not to add this? |
Support the standard marshaling/unmarshaling interfaces from the
encoding
package:The text was updated successfully, but these errors were encountered: