Awesome
go-ipld-cbor
An implementation of a cbor encoded merkledag object.
Status
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.
Lead Maintainer
Table of Contents
Install
make install
Usage
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())
Contribute
PRs are welcome!
Small note: If editing the Readme, please conform to the standard-readme specification.
License
MIT © Jeromy Johnson