Installation

Install Pre Requisites
sudo apt update
sudo apt install git build-essential curl jq lz4 --yes

wget https://go.dev/dl/go1.20.2.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.20.2.linux-amd64.tar.gz
rm go1.19.linux-amd64.tar.gz

export PATH=$PATH:/usr/local/go/bin
cat <<EOF >> ~/.profile  
export GOPATH=$HOME/go  
export GO111MODULE=on  
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin  
EOF

source ~/.profile

go version

# OUTPUT
# go version go1.20.2 linux/amd64

Last updated