An implementation of a cbor encoded merkledag object.
This library has alternatives available: For new projects, prefer using the cbor codec included with go-ipld-prime.
This library is in standby mode. It works, but we recommend migrating to alternatives if possible. New features are unlikely to be added here.
make install
Note: This package isn't the easiest to use.
// Make an object
obj := map[interface{}]interface{}{
"foo": "bar",
"baz": &Link{
Target: myCid,
},
}
// Parse it into an ipldcbor node
nd, err := WrapMap(obj)
fmt.Println(nd.Links())
PRs are welcome!
Small note: If editing the Readme, please conform to the standard-readme specification.
MIT © Jeromy Johnson