packagecore_io// TODO rename package to something that doesn't conflict with io/ioutil.// Pretty names are hard to find.//// Candidates://// go-ipfs/core/unix// go-ipfs/core/io// go-ipfs/core/ioutil// go-ipfs/core/coreio// go-ipfs/core/coreuniximport("io"core"github.com/jbenet/go-ipfs/core"importer"github.com/jbenet/go-ipfs/importer"chunk"github.com/jbenet/go-ipfs/importer/chunk"u"github.com/jbenet/go-ipfs/util")funcAdd(n*core.IpfsNode,rio.Reader)(u.Key,error){// TODO more attractive function signature importer.BuildDagFromReaderdagNode,err:=importer.BuildDagFromReader(r,n.DAG,nil,chunk.DefaultSplitter,)iferr!=nil{return"",err}returndagNode.Key()}