1 | Golang Installation
This is the first time i study and write articles about Go Language, I will share all of my journey using this language. Let’s start with a very simple task. Install Golang on your computer.
A. Golang Installation on Windows
if you’re using windows. It easy to install golang. Download an installer first in this link and choose installer like your windows specification bit. After all, just open the installer and follow installation guide, Usually just click Next until installation process is done.
Basically Golang will installed on your computer in directory c:\go, and that PATH will automatically register on PATH Variabel Windows. If you want to check your golang was installed or not, just open command prompt. Then type :
go version
And you will get your golang version if your installation is done.
B. Golang Installation on Mac
The easiest way to install golang is using brew in mac os. If you install it yet. just open your terminal, then running this :
$ ruby -e "$(curl -fsSL http://git.io/pVOl)"
Your brew is installed. After that let’s install golang :
$ brew install go
Don’t forget to add PATH into your environment variable :
echo "export PATH=$PATH:/usr/local/go/bin" >> ~/.bash_profile
$ source ~/.bash_profile
Voila now, you can test your golang :
go version
C. Golang Installation on Linux
If you want to install golang in linux, let’s start with download installer in this link and choose like what your linux version. In another way, you can download by linux terminal by typing like this
$ wget https://storage.googleapis.com/golang/go1...
After download, then open your terminal to extract it
$ tar -C /usr/local -xzf go1...
Done extract, Then let’s register your GOPATH
$ echo "export PATH=$PATH:/usr/local/go/bin" >> ~/.bashrc
$ source ~/.bashrc
Then let’s check your installation
go version
Let’s share if you have problem or you have tips for me to study this language in comment section below. hope it help. Thanks for reading my post.