1 2 3 4 5 6 7
# Define path for Go code to be installed GOPATH=$HOME/.local/gocode export GOPATH # Prepend GOPATH to PATH for the executables PATH=$GOPATH/bin:$PATH