Go or GoLang, as it is called, is an open-source programming language designed to help ease the development of simple and scalable applications. It was implemented as a product of Google Engineering in 2009. It was referred to as a statically-typed programming language with ease of use, versatility, and reliability.
Currently, Golang has become one of the most popular programming languages due to its efficiency, clean design, and expressive, and concise design model. Some of the projects that make use of Golang are:
- snappy – a package manager
- Juju – a service orchestration tool by canonical
- Docker – a set of tools for deploying containers
- Dropbox moved the critical components to Go lang from python
The features of the Go programming language are:
- It is Open-Source
- It has a powerful Standard Library and Tool Set
- Concurrency Support – it offers easy and trackable concurrency options.
- Garbage Collection
- Testing Capabilities
- Cross-Platform Development Opportunities
- Highly scalable
This guide offers a systematic demonstration of how to install Go (Golang) on CentOS 7 / RHEL 7.
Step 1 – Update System
First, ensure that your system is up-to-date and packages are to their latest versions. This is achieved using the command below:
yum update -y
Install the required packages:
yum install wget -y
Step 2 – Install Go (Golang)
wget -N https://storage.googleapis.com/golang/getgo/installer_linux
chmod +x installer_linux && ./installer_linux
Once the installation will be completed, You will then be required to source the ~/.bash_profile
source ~/.bash_profile
Finally, verify the installed version of Golang:
go version
That's all!