Skip to content
This repository was archived by the owner on Sep 4, 2025. It is now read-only.

Commit 40fe989

Browse files
mattbostockaren55555
authored andcommitted
Prefix example app with $GOPATH env var (#79)
Instead of using `cd` to change to the package directory, prepend the examples commands with `$GOPATH`, which will make the commands easier to follow for anyone unfamiliar with Go. It's easy to miss the 'cd' instruction above.
1 parent ec041eb commit 40fe989

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,11 @@ To run,
8787

8888
* Make sure you have go installed
8989
* Create the following directories or similar: `~/go`
90-
* `cd` there
9190
* Set `GOPATH` to `PWD` in your shell session, `export GOPATH=$PWD`
9291
* `go get github.com/google/jsonapi`. (Append `-u` after `get` if you
9392
are updating.)
94-
* `go run src/github.com/google/jsonapi/examples/app.go` or `cd
95-
src/github.com/google/jsonapi/examples && go run app.go`
93+
* `go run $GOPATH/src/github.com/google/jsonapi/examples/app.go` or `cd
94+
$GOPATH/src/github.com/google/jsonapi/examples && go run app.go`
9695

9796
## `jsonapi` Tag Reference
9897

0 commit comments

Comments
 (0)