[go-nuts] Re: on GOPATH

2016-09-02 Thread Diddymus
I prefer a GOPATH per project but never worry about setting it. I have a small bash/dash script called gp which finds the GOPATH for me as long as I'm in the project somewhere: #!/bin/dash paths=${PWD} while [ "$paths" != "/" ]; do if [ -d "$paths/bin" ]; then if [ -d "$p

[go-nuts] Re: on GOPATH

2016-09-02 Thread Simon Ritchie
Responses to a question like this tend to be either very detailed, or vague. This one has all the gory details. I develop under Linux. I'm happy to use fancy visual tools, but I also do a lot of stuff from the command line. I have a directory GOCODE where I put stuff that I fetch via go get.