Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

goenv

install

git clone --depth=1 https://github.com/go-nv/goenv ~/.goenv
sudo vim ~/.zshrc
export GOENV_ROOT="$HOME/.goenv"
export PATH="$GOENV_ROOT/bin:$PATH"
eval "$(goenv init -)"
source ~/.zshrc

usage

# wget https://go.dev/dl/go1.22.0.linux-arm64.tar.gz
# mkdir -p ~/.goenv/cache
# mv go1.22.0.linux-arm64.tar.gz ~/.goenv/cache/
goenv install 1.22.0
go version