From 40fe9896b32281b26e75ca9e8cee5bc6de9bb465 Mon Sep 17 00:00:00 2001 From: Matt Bostock Date: Wed, 8 Feb 2017 02:42:29 +0000 Subject: [PATCH] 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. --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b69f779..3f99aaa 100644 --- a/README.md +++ b/README.md @@ -87,12 +87,11 @@ To run, * Make sure you have go installed * Create the following directories or similar: `~/go` -* `cd` there * Set `GOPATH` to `PWD` in your shell session, `export GOPATH=$PWD` * `go get github.com/google/jsonapi`. (Append `-u` after `get` if you are updating.) -* `go run src/github.com/google/jsonapi/examples/app.go` or `cd - src/github.com/google/jsonapi/examples && go run app.go` +* `go run $GOPATH/src/github.com/google/jsonapi/examples/app.go` or `cd + $GOPATH/src/github.com/google/jsonapi/examples && go run app.go` ## `jsonapi` Tag Reference