Example code for interating with:
- go-car - .car content archive format used by Filecoin
- go-datastore - implementing a standard key/value storage API based on this Python thing
- go-ds-flatfs - implementing a filesystem-based datastore
- go-ds-leveldb - implementing a LevelDB-based datastore
- go-ipfs-blockstore - wrapping a go-datastore in a slightly nicer interface for IPLD blocks
- go-cbor - for interacting directly with IPLD CBOR blocks
- go-ipld-prime - the new hotness for interacting with IPLD blocks
go run example.go
You get:
- A .car file: example.car
- Stdout showing the header (root CIDs) of a .car file that's generated from example data
- Stdout showing decoding of the blocks in the .car file
- A Datastore (flatfs) that was used as the source for creating the .car file: datastore.in
- A Datastore (flatfs) that was used as the destination for dumping the .car file: datastore.out