node_client.asciidoc typo

Shell commands start with "$"
pull/558/head
quantumcthulhu 4 years ago committed by GitHub
parent 030829e2b1
commit 724f03116e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -699,8 +699,8 @@ go version go1.13.4 linux/amd64
We have 1.13.4, so we're ready to... Go! Next we need to tell any programs where to find the Go code. This is accomplished by setting the environment variable +GOPATH+. Usually the Go code is located in a directory named +gocode+ directly in the user's home directory. With the following two commands we consistently set the +GOPATH+ and make sure your shell adds it to your executable +PATH+. Note that the user's home directory is referred to as +~+ in the shell. We have 1.13.4, so we're ready to... Go! Next we need to tell any programs where to find the Go code. This is accomplished by setting the environment variable +GOPATH+. Usually the Go code is located in a directory named +gocode+ directly in the user's home directory. With the following two commands we consistently set the +GOPATH+ and make sure your shell adds it to your executable +PATH+. Note that the user's home directory is referred to as +~+ in the shell.
---- ----
export GOPATH=~/gocode $ export GOPATH=~/gocode
export PATH=$PATH:$GOPATH/bin $ export PATH=$PATH:$GOPATH/bin
---- ----
To avoid having to set these environment variables every time you open a shell, you can add those two lines to the end of your bash shell configuration file +.bashrc+ in your home directory, using the editor of your choice. To avoid having to set these environment variables every time you open a shell, you can add those two lines to the end of your bash shell configuration file +.bashrc+ in your home directory, using the editor of your choice.

Loading…
Cancel
Save