How to install last version of golang

go to do https://golang.org/dl/ and copy the link.

$sudo wget https://dl.google.com/go/go1.13.7.linux-amd64.tar.gz -O - | sudo tar -xz -C /usr/local/

edit file

nano ~/.bashrc

add following and save it (ctrl+x)

export GOPATH=$HOME/work
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin

reload /.bashrc

source ~/.bashrc

Leave a Reply

Close Menu