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.
This commit is contained in:
Brian Tiger Chow 2015-01-15 12:06:25 -08:00
parent 3dd68ba5c5
commit ffe6f9a949

View File

@ -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(