{"id":15153011,"url":"https://github.com/keinos/go-ipfs-as-a-library","last_synced_at":"2026-01-20T18:56:03.998Z","repository":{"id":102704538,"uuid":"393352205","full_name":"KEINOS/go-ipfs-as-a-library","owner":"KEINOS","description":"A working example of Go-IPFS as a library on Go v1.14, v1.15, v1.16.","archived":false,"fork":false,"pushed_at":"2021-08-29T03:44:49.000Z","size":344,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-13T14:19:23.511Z","etag":null,"topics":["go","go-examples","go-ipfs","golang","golang-examples","golang-library"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KEINOS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-06T11:10:05.000Z","updated_at":"2021-08-29T03:44:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"c8de0c6e-2ff3-48bc-b7a0-514fdd5f0b32","html_url":"https://github.com/KEINOS/go-ipfs-as-a-library","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"24701329c67b8aba3cc03f857d1e3aa1bb3c28db"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KEINOS%2Fgo-ipfs-as-a-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KEINOS%2Fgo-ipfs-as-a-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KEINOS%2Fgo-ipfs-as-a-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KEINOS%2Fgo-ipfs-as-a-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KEINOS","download_url":"https://codeload.github.com/KEINOS/go-ipfs-as-a-library/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247645405,"owners_count":20972471,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","go-examples","go-ipfs","golang","golang-examples","golang-library"],"created_at":"2024-09-26T16:43:21.964Z","updated_at":"2026-01-20T18:56:03.979Z","avatar_url":"https://github.com/KEINOS.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example of Go-IPFS As A Library\n\nThis repo is a spin-off of the [official tutorial sample of `go-ipfs` (from Go-IPFS v0.7.0)](https://github.com/ipfs/go-ipfs/tree/v0.7.0/docs/examples/go-ipfs-as-a-library).\n\nIt aims to be the working example for various Golang version.\n\n- Example: [main.go](./main.go)\n- Tests of the example: [main_test.go](./main_test.go)\n- Results of weekly testing\n  - Go 1.14 [![go1_14](https://github.com/KEINOS/go-ipfs-as-a-library/actions/workflows/runGo1_14.yml/badge.svg)](https://github.com/KEINOS/go-ipfs-as-a-library/actions/workflows/runGo1_14.yml)\n  - Go 1.15\n[![go1_15](https://github.com/KEINOS/go-ipfs-as-a-library/actions/workflows/runGo1_15.yml/badge.svg)](https://github.com/KEINOS/go-ipfs-as-a-library/actions/workflows/runGo1_15.yml)\n  - Go 1.16 [![go1_16](https://github.com/KEINOS/go-ipfs-as-a-library/actions/workflows/runGo1_16.yml/badge.svg)](https://github.com/KEINOS/go-ipfs-as-a-library/actions/workflows/runGo1_16.yml)\n\n## How To Run\n\n```shellsession\n$ git clone https://github.com/KEINOS/go-ipfs-as-a-library.git\n...(** snip **)...\n\n$ cd ./go-ipfs-as-a-library\n\n$ go mod download\n...(** snip **)...\n\n$ go run main.go\n...(** snip **)...\nAll done! You just finalized your first tutorial on how to use go-ipfs as a library\n```\n\n## How To Test\n\n```shellsession\n$ go test .\nok      github.com/ipfs/go-ipfs/examples/go-ipfs-as-a-library   2.362s\n```\n\nIf you have Docker installed, you can run the test with `docker-compose`.\n\n```bash\n# It runs the tests on Go v1.14, 1.15, 1.16 over Alpine Linux\n$ docker-compose up\n...(** snip **)...\nv1_14_1  | ok  \tgithub.com/ipfs/go-ipfs/examples/go-ipfs-as-a-library\t2.973s\nv1_14_1 exited with code 0\nv1_15_1  | ok  \tgithub.com/ipfs/go-ipfs/examples/go-ipfs-as-a-library\t2.205s\nv1_15_1 exited with code 0\nv1_16_1  | ok  \tgithub.com/ipfs/go-ipfs/examples/go-ipfs-as-a-library\t1.696s\nv1_16_1 exited with code 0\n```\n\n## References for Go-IPFS\n\n- [Working with Go](https://docs.ipfs.io/reference/go/api/#working-with-go) @ docs.ipfs.io\n- [Use go-ipfs as a library to spawn a node and add a file](https://github.com/ipfs/go-ipfs/blob/master/docs/examples/go-ipfs-as-a-library/README.md) | Docs | go-ipfs @ GitHub\n\n## License\n\n- Original Authors:\n  - [go-ipfs/commits/v0.7.0/docs/examples/go-ipfs-as-a-library](https://github.com/ipfs/go-ipfs/commits/v0.7.0/docs/examples/go-ipfs-as-a-library)\n- [MIT](LICENSE-MIT)/[Apache-2.0](LICENSE-APACHE), [Dual License](LICENSE)\n  - See: [Issue #6302](https://github.com/ipfs/go-ipfs/issues/6302) | go-ipfs | ipfs @ GitHub\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeinos%2Fgo-ipfs-as-a-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeinos%2Fgo-ipfs-as-a-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeinos%2Fgo-ipfs-as-a-library/lists"}