Files
linux-workspace/rc/go-env.sh
2022-03-18 08:05:07 +01:00

12 lines
215 B
Bash

# Use user defined Go version
# GOPATH and GOROOT must be already set in $HOME/.bashrc
if [[ ! -z "$GOPATH" ]]; then
prepend_path "$GOPATH/bin"
fi
if [[ ! -z "$GOROOT" ]]; then
prepend_path "$GOROOT/bin"
fi