Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
This is way easier than you think !!
Step 1 - download
Firstly, let make sure our system is up-to-date
sudo apt update && sudo apt upgrade
No let’s download the go package:
Go to Go’s download page and grab a link for the latest version.
The version when I wrote this wee blog was go1.13.
Got the link? sweet! let’s download it:
Now let’s untar it
tar xvfz go1.13.linux-amd64.tar.gz
And move it to an appropriate place (like /usr/local maybe?)
sudo mv go /usr/local/go
Step 2 - setup your environment
We’re going to add a few environment variables in our .bashrc, and add to our $PATH.
so let’s do that
and then create our goProjects directory:
and finally, let’s reload our environment:
What we’ve done is:
- Told our bash environment where to find go
- Told our bash environment where our working directory is (~/goProjects)
- added two directories to our $PATH
Step 3 - verify your install
Here comes the easy bit, let’s check our installed go version:
and let’s check our go environment
Simple eh? 👍
no get “go-ing” 😂