User defined Go version

This commit is contained in:
Martin Blazik
2022-03-18 08:05:07 +01:00
parent cb16c948ac
commit 173ebde9bf

11
rc/go-env.sh Normal file
View File

@@ -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