How To install Goland 1.8 on Ubuntu 18.04

GO (or Goland) is an open source programming language that makes it easy to create simple, reliable and efficient programs. It is a modern programming language that focuses on simplicity and security. It has become a very popular language used for server-side development.

Download GO

To download, please enter the following:

cd ~
wget https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz

After that, you need to unzip the files:

tar -xf go1.8.3.linux-amd64.tar.gz

Move the folder to /opt/ to another directory of your choice. Remember that if you select a different directory, you need to correct the path accordingly in the next steps.

mv go /opt/

Then Add please environment path

mkdir /opt/gopkg
export GOPATH="/opt/gopkg" 
export GOROOT="/opt/go"

Now you need to add them to the PATH variable.

export PATH=$PATH:$GOPATH/bin:$GOROOT/bin 

For changes to be permanent, it is imperative to place the following commands in the .profile file:

export GOPATH="/opt/gopkg" 
export GOROOT="/opt/go"
export PATH=$PATH:$GOPATH/bin:$GOROOT/bin 

After completing this part of the procedure, please check your go installation.

go version

Was this article helpful?

Related Articles