diff --git a/rc/go-env.sh b/rc/go-env.sh new file mode 100644 index 0000000..78544e6 --- /dev/null +++ b/rc/go-env.sh @@ -0,0 +1,11 @@ +# 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 +