User defined Go version
This commit is contained in:
11
rc/go-env.sh
Normal file
11
rc/go-env.sh
Normal 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
|
||||||
|
|
||||||
Reference in New Issue
Block a user