mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-28 22:08:01 +08:00
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:
parent
3dd68ba5c5
commit
ffe6f9a949
@ -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(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user