Skip to content

Commit

Permalink
Merge pull request #6733 from ipfs/fix-example-readme
Browse files Browse the repository at this point in the history
docs: remove extra ) on the example README
  • Loading branch information
Stebalien committed Oct 29, 2019
2 parents 3bdc959 + 79d5ced commit 86a77fa
Showing 1 changed file with 13 additions and 13 deletions.
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

0 comments on commit 86a77fa

Please sign in to comment.