[go-nuts] Re: Trying to understand GOPATH

2016-09-24 Thread Simon Ritchie
This could be a bit better explained on the golang website. First, note that there are potentially three environment variables involved: PATH; GOROOT and GOPATH. The Getting Started guide (https://golang.org/doc/install#install) gives quite a lot of help, and you should read that thoroughly.

[go-nuts] Re: Trying to understand GOPATH

2016-09-23 Thread Diego Medina
As you start working with Go, one other thing you may want to add to your ~/.bash_profile (on linux and mac, not sure about others) is CDPATH=.:$GOPATH/src/code.google.com/p:$GOPATH/src/github.com:$GOPATH/src/bitbucket.org export CDPATH so let's say you have $GOPATH as

[go-nuts] Re: Trying to understand GOPATH

2016-09-23 Thread leon . johnson
Thanks for the response, it makes sense now. On Friday, September 23, 2016 at 12:13:30 AM UTC-4, leon.j...@gmail.com wrote: > > I'm new to golang, and I'm trying to understand the role of GOPATH. The OS > X package from https://golang.org/dl/ installs to `/usr/local/go/bin/go`. > > Do I have