Skip to content
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

Let Cid implement Binary[Un]Marshaler and Text[Un]Marshaler interfaces. #81

Merged
merged 1 commit into from
Feb 20, 2019

Conversation

hsanjuan
Copy link
Contributor

This makes Cid implement https://golang.org/pkg/encoding/#BinaryMarshaler
which is used by go-codec to decide if things know how to serialize themselves
(currently we need do manual wrapping for anything containing a CID).

Since I was at it, I did the TextMarshaling one too.

This makes Cid implement https://golang.org/pkg/encoding/#BinaryMarshaler
which is used by go-codec to decide if things know how to serialize themselves
(currently we need do manual wrapping for anything containing a CID).

Since I was at it, I did the TextMarshaling one too.
@ghost ghost assigned hsanjuan Feb 19, 2019
@ghost ghost added the status/in-progress In progress label Feb 19, 2019
@hsanjuan hsanjuan merged commit 14b828a into master Feb 20, 2019
@hsanjuan hsanjuan deleted the feat/binary-marshaler branch February 20, 2019 16:20
@ghost ghost removed the status/in-progress In progress label Feb 20, 2019
@hsanjuan
Copy link
Contributor Author

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants