go-ipfs-api icon indicating copy to clipboard operation
go-ipfs-api copied to clipboard

Idiomatic "DefaultShell"

Open jbenet opened this issue 7 years ago • 0 comments

In most tools, i want to:

  • default to use a locally available ipfs node
  • default to use the global ipfs-gateway

in these cases, it would be nice to have something like:

import ipfs "github.com/ipfs/go-ipfs-api"

ipfsNode, err := ipfs.DefaultNode()

that does this for me.

jbenet avatar Feb 02 '18 04:02 jbenet