O'Reilly logo

Isomorphic Go by Kamesh Balasubramanian

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting up your Go workspace

Now that you've successfully installed Go on your system, you need to have a properly configured Go workspace before you can proceed further. We will provide a high-level overview on setting up a Go workspace, and if you need further help, you may read the detailed instructions on setting up a Go workspace available at the Go website: https://golang.org/doc/code.html.

Use your favorite text editor to open up the .profile file in your home directory. If you are using Linux, you need to open up the .bashrc file found in your home directory.

We are going to add the following lines to the file to add some very important environment variables:

export GOROOT=/usr/local/goexport GOPATH=/Users/kamesh/goexport GOBIN=${GOPATH}/bin ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required