Hello dear developers!!

In this tutorial we will see how we install golang on Ubuntu.

First step access the golang download page:
golang download

We will choose the desired version, in this case 1.17.7

At the root in your path we will download it with wget

wget https://golang.org/dl/go1.17.7.linux-amd64.tar.gz -O gol.tar.gz

ptjkd2rdeoe94mukshpo

We will unzip the path

sudo tar -vzxf gol.tar.gz -C /usr/local

Next we will add to bash of our preference, in this case zsh sudo nano ~/.zshrc:

export GOROOT=/usr/local/go
export PATH=$PATH:/usr/local/go/bin

Then we run the command to update the zsh source ~/.zshrc.

We can test the installed version of golang in the terminal

go version

xs8qqjnsvb5pcz1xggt7

I hope helped.