}

How to install GO language

Created:

Introduction

Go is an open source programming language. This language was introduced November 10th, 2009. The main feature of go is the elegant concurrency model and also provides type inference, hash maps (dictionaries), variable-length arrays, methods on any user-defined type, and implicitly satisfied interfaces. Another cool feature is that integrates with Git, which makes very easy to install packages.

Installation

wget https://storage.googleapis.com/golang/go1.7.1.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.7.1.linux-amd64.tar.gz
mkdir $HOME/go

then add to you .bashrc or .zshrc

export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin

Testing your installation

if everything was installed correclty when you execute go version the following output should be obtained

go version go1.7.1 linux/amd64