Skip to content

Installation

Mac OS

To install on mac os

sh
brew install go
go version

Linux

To download on linux

sh
curl -O https://storage.googleapis.com/golang/go1.13.5.linux-amd64.tar.gz

Extract

sh
tar -xvf go1.13.5.linux-amd64.tar.gz

Move to local

sh
sudo mv go /usr/local

Set the path

sh
sudo nano ~/.profile

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

source ~/.profile

You are all set, check the version now

sh
go version