Installing Go

Let's download the file, unzip it and install it in /usr/local/go, if we already have golang installed on the machine we will have to remove the existing one to leave our installation as unique.

Let's create our directory in our workspace and test to see if everything went well.

Commands for Linux:



$ sudo rm -rf /usr/local/go
$ wget https://dl.google.com/go/go1.11.4.linux-amd64.tar.gz
$ sudo tar -C /usr/local -xzf go$VERSION.$OS-$ARCH.tar.gz

                    

Let's verify that the installation was successful by running the following command:


$ go version
> go version go1.11.4 linux/amd64

                    
introduction.go

Under development...