Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: remove extra ) on the example README #6733

Merged
merged 1 commit into from
Oct 29, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
26 changes: 13 additions & 13 deletions docs/examples/go-ipfs-as-a-library/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,30 +83,30 @@ As soon as you construct the IPFS node instance, the node will be running.

### Part 2: Adding a file and a directory to IPFS

- [Prepare the file to be added to IPFS](./main.go#L166-L184))
- [Add the file to IPFS](./main.go#L240-L243))
- [Prepare the directory to be added to IPFS](./main.go#L186-L198))
- [Add the directory to IPFS](./main.go#L252-L255))
- [Prepare the file to be added to IPFS](./main.go#L166-L184)
- [Add the file to IPFS](./main.go#L240-L243)
- [Prepare the directory to be added to IPFS](./main.go#L186-L198)
- [Add the directory to IPFS](./main.go#L252-L255)

### Part 3: Getting the file and directory you added back

- [Get the file back](./main.go#L265-L268))
- [Write the file to your local filesystem](./main.go#L270-L273))
- [Get the directory back](./main.go#L277-L280))
- [Write the directory to your local filesystem](./main.go#L282-L285))
- [Get the file back](./main.go#L265-L268)
- [Write the file to your local filesystem](./main.go#L270-L273)
- [Get the directory back](./main.go#L277-L280)
- [Write the directory to your local filesystem](./main.go#L282-L285)

### Part 4: Getting a file from the IPFS network

- [Connect to nodes in the network](./main.go#L293-L310))
- [Get the file from the network](./main.go#L318-L321))
- [Write the file to your local filesystem](./main.go#L323-L326))
- [Connect to nodes in the network](./main.go#L293-L310)
- [Get the file from the network](./main.go#L318-L321)
- [Write the file to your local filesystem](./main.go#L323-L326)

### Bonus: Spawn a daemon on your existing IPFS repo (on the default path ~/.ipfs)

As a bonus, you can also find lines that show you how to spawn a node over your default path (~/.ipfs) in case you had already started a node there before. To try it:

- [Comment these lines](./main.go#L219-L223))
- [Uncomment these lines](./main.go#L209-L216))
- [Comment these lines](./main.go#L219-L223)
- [Uncomment these lines](./main.go#L209-L216)

## Voil谩! You are now a go-ipfs hacker

Expand Down