We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73743d6 commit 3362d23Copy full SHA for 3362d23
dag.go
@@ -8,7 +8,7 @@ import (
8
"strings"
9
10
"github.com/ipfs/go-ipfs-api/options"
11
- "github.com/ipfs/go-ipfs-files"
+ files "github.com/ipfs/go-ipfs-files"
12
)
13
14
func (s *Shell) DagGet(ref string, out interface{}) error {
@@ -52,6 +52,7 @@ func (s *Shell) DagPutWithOpts(data interface{}, opts ...options.DagPutOption) (
52
Option("input-enc", cfg.InputEnc).
53
Option("format", cfg.Kind).
54
Option("pin", cfg.Pin).
55
+ Option("hash", cfg.Hash).
56
Body(fileReader).
57
Exec(context.Background(), &out)
58
}
0 commit comments