Commit ffe6f9a9 authored by Brian Tiger Chow's avatar Brian Tiger Chow

doc(core_io/Add)

@jbenet wasn't sure about the terminology here. I'm certain what I wrote
is not entirely correct. Feel free to edit.
parent 3dd68ba5
......@@ -20,6 +20,8 @@ import (
u "github.com/jbenet/go-ipfs/util"
)
// Add builds a merkledag from the a reader, pinning all objects to the local
// datastore. Returns a key representing the root node.
func Add(n *core.IpfsNode, r io.Reader) (u.Key, error) {
// TODO more attractive function signature importer.BuildDagFromReader
dagNode, err := importer.BuildDagFromReader(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment