-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
Currently, when decoding into a blank interface (interface{}
), some formats (e.g., CBOR), support picking the atlas entry by tag. Unfortunately, atlas entries can't be built for types behind pointers. Normally, this isn't an issue as refmt will just "do the right thing" however, in this case, refmt doesn't have enough information to do that.
It would be nice if there were some way to tell refmt to deserialize to a pointer.
Possible solutions:
- Add a method to the atlas builder.
- Allow types behind pointers in
atlas.BuildEntry
. refmt would still "do the right thing" but it would now have enough information to pick the right "default form" (behind pointer or not).
Context: ipfs/go-ipld-cbor#30. We want to deserialize "cids" to *cid.Cid
but can only deserialize them to cid.Cid
.
Metadata
Metadata
Assignees
Labels
No labels