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

Examples?

Open jbenet opened this issue 7 years ago • 4 comments

Are there usage examples? dont see any in the repo

jbenet avatar Feb 02 '18 04:02 jbenet

Some examples would indeed be greatly appreciated, as everything I try just gives me a SIGSEGV…

E.g.:

package main

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

func main() {
	shell.NewLocalShell().FileList("/ipfs/QmS4ustL54uo8FzR9455qaxZwuMiUhyvMcX9Ba8nUH4uVv")
}

jcaesar avatar May 16 '18 14:05 jcaesar

the following package can be used as examples on how to use this library (there are also accompanying tests) however it uses a fork of go-ipfs-api but the examples none the less should be usable with the non fork (aka, the repository hosting this issue)

https://github.com/RTradeLtd/rtfs/blob/616e741a37e440d760448331b8fc93fb87498a19/rtfs.go#L158

bonedaddy avatar May 18 '18 06:05 bonedaddy

https://github.com/OpenBazaar/openbazaar-go https://github.com/textileio/textile-go

Those two projects use go-ipfs directly, and don't appear to use this repo

magik6k avatar Jan 20 '19 17:01 magik6k

Owh @magik6k , my bad. I'll remove it.

moon004 avatar Jan 21 '19 04:01 moon004