forked from Mirrors/jsonapi
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.
This commit is contained in:
parent
ec041eb56b
commit
40fe9896b3
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue