All Projects → ipfs → go-ipld-cbor

ipfs / go-ipld-cbor

Licence: MIT License
A cbor implementation of the go-ipld-format

Programming Languages

go
31211 projects - #10 most used programming language
Makefile
30231 projects

go-ipld-cbor

Coverage Status Travis CI

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

Eric Myhre

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].