Re:What I learned in 2017 writing Go
by collinvandyck76 on Wednesday January 03, 2018 @07:24PM
(#16066839)
I use zsh and there is an easy way to find your golang projects using cdpath:
# setup easy access to cd paths
setopt auto_cd
cdpath=($HOME/code/go/src/github.com \
$HOME/code/go/src/github.com/collinvandyck \
$HOME/code \
$HOME/code/go/src)
I've solved my main issue with GOPATH in a very easy way though. I just create symlinks in my normal directories (like ~/work) to my projects in GOPATH. This allows me to go to my own projects easily while still having everything in GOPATH.