Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
Added missing docs for Add method (#269)
Browse files Browse the repository at this point in the history
* Added missing docs for Add method

* Update add.go

Co-authored-by: Gus Eggert <[email protected]>
  • Loading branch information
drgomesp and guseggert authored Oct 13, 2022
1 parent cb1fca1 commit 42a3388
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions add.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ func CidVersion(version int) AddOpts {
}
}

// Add adds a file to ipfs pinning it with the given options
func (s *Shell) Add(r io.Reader, options ...AddOpts) (string, error) {
fr := files.NewReaderFile(r)
slf := files.NewSliceDirectory([]files.DirEntry{files.FileEntry("", fr)})
Expand Down

0 comments on commit 42a3388

Please sign in to comment.