This repo is a spin-off of the official tutorial sample of go-ipfs
(from Go-IPFS v0.7.0).
It aims to be the working example for various Golang version.
- Example: main.go
- Tests of the example: main_test.go
- Results of weekly testing
$ git clone https://github.com/KEINOS/go-ipfs-as-a-library.git
...(** snip **)...
$ cd ./go-ipfs-as-a-library
$ go mod download
...(** snip **)...
$ go run main.go
...(** snip **)...
All done! You just finalized your first tutorial on how to use go-ipfs as a library
$ go test .
ok github.com/ipfs/go-ipfs/examples/go-ipfs-as-a-library 2.362s
If you have Docker installed, you can run the test with docker-compose
.
# It runs the tests on Go v1.14, 1.15, 1.16 over Alpine Linux
$ docker-compose up
...(** snip **)...
v1_14_1 | ok github.com/ipfs/go-ipfs/examples/go-ipfs-as-a-library 2.973s
v1_14_1 exited with code 0
v1_15_1 | ok github.com/ipfs/go-ipfs/examples/go-ipfs-as-a-library 2.205s
v1_15_1 exited with code 0
v1_16_1 | ok github.com/ipfs/go-ipfs/examples/go-ipfs-as-a-library 1.696s
v1_16_1 exited with code 0
- Working with Go @ docs.ipfs.io
- Use go-ipfs as a library to spawn a node and add a file | Docs | go-ipfs @ GitHub
- Original Authors:
- MIT/Apache-2.0, Dual License
- See: Issue #6302 | go-ipfs | ipfs @ GitHub