forked from cerc-io/ipld-eth-server
| .. | ||
| encoding | ||
| .travis.yml | ||
| codecov.yml | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| Makefile | ||
| node.go | ||
| package.json | ||
| readable.go | ||
| README.md | ||
| refmt.go | ||
go-ipld-cbor
An implementation of a cbor encoded merkledag object.
Table of Contents
Install
make install
Usage
TODO: Right now this package isn't the easiest to use, it will be getting better rapidly, soon.
// 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