We will be installing Go using Gophers PPA. This PPA will install the latest stable version of Go available for Ubuntu.
Adding the PPA.
sudo add-apt-repository ppa:gophers/go
Updating local repository database.
sudo apt-get update
sudo apt-get install glang-stable
#### Wrting you first Go program.
- Create a file named ‘app.go’. Go uses .go as extension to identify a Go language file.
- Use you favorite editor to open the file ‘app.go’.
- Add the lines given below to the file.
Save the changes you have made in the file.
Now execute the programming by entering the command below.
go run app.go
We now have Go language complier installed on Ubuntu. If you have any problem feel free to leave a comment below.