Giter Club home page Giter Club logo

go-ipfs-as-a-library's Introduction

Example of Go-IPFS As A Library

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
    • Go 1.14 go1_14
    • Go 1.15 go1_15
    • Go 1.16 go1_16

How To Run

$ 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

How To Test

$ 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

References for Go-IPFS

License

go-ipfs-as-a-library's People

Contributors

keinos avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.