Created
May 25, 2021 04:25
-
-
Save MokkeMeguru/f1306768fc93da8a70d30e9c47c317f2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
echo $(which go) | |
git clone https://github.com/syndbg/goenv.git ~/.goenv | |
echo 'export GOENV_ROOT="$HOME/.goenv"' >>~/.bash_profile | |
echo 'export PATH="$GOENV_ROOT/bin:$PATH"' >>~/.bash_profile | |
echo 'eval "$(goenv init -)"' >>~/.bash_profile | |
. ~/.bash_profile | |
goenv install 1.16.3 | |
echo 'export PATH="$GOROOT/bin:$PATH"' >>~/.bash_profile | |
echo 'export PATH="$PATH:$GOPATH/bin"' >>~/.bash_profile | |
. ~/.bash_profile | |
goenv global 1.16.3 | |
echo $(which go) | |
go version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment