cd /opt/softsudo wget https://go.dev/dl/go1.18.1.linux-amd64.tar.gzsudo tar -xzvf go1.18.1.linux-amd64.tar.gzcd gomkdir GOPATH
vim ~/.bashrc
export GOPATH=/opt/soft/go/GOPATH
export PATH=$PATH:$GOPATH:/opt/soft/go/bin
source ~/.bashrcgo version