Skip to content

Commit 00a5f1e

Browse files
committed
add some info about folders to fix #209
1 parent 3a27414 commit 00a5f1e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hello-world.md

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Make a directory in the following path `$GOPATH/src/github.com/{your-user-id}/he
1010

1111
So if you're on a unix based OS and your username is "bob" and you are happy to stick with Go's conventions about `$GOPATH` (which is the easiest way of setting up) you could run `mkdir -p $GOPATH/src/github.com/bob/hello`.
1212

13+
For subsequent chapters, you can make a new folder with whatever name you like to put the code in e.g `$GOPATH/src/github.com/{your-user-id}/integers` for the next chapter might be sensible. Some readers of this book like to make an enclosing folder for all the work such as "learn-go-with-tests/hello". In short, it's up to you how you structure your folders.
14+
1315
Create a file in this directory called `hello.go` and write this code. To run it type `go run hello.go`.
1416

1517
```go

0 commit comments

Comments
 (0)