Golang Programming Language Setup and Basic Apps for Beginners

Irfan Irawan Sukirman
Jan 1 · 2 min read

Assalaamu’alaykum Warahmatullahi Wabarakaatuh guys.

This is my first episode about golang programming language. In this article i’ll show you how to setup golang in your environment and how to use it.


Download golang here:

After you download it, double click and wait until the process is complete. Or you can install golang in another way.

Step 1:

Open terminal and write this command:

$ curl -o golang.pkg https://dl.google.com/go/go1.13.3.darwin-amd64.pkg

Step 2:

After package downloaded, execute it with this command:

$ sudo open golang.pkg

Step 3:

Setup Go Workspace open file .bash_profile. If you don’t know to edit it. You can follow this article:

You need to register 3 environment variables as GOROOT, GOPATH, and PATH.

GOROOT is the location of your golang installation.

$ export GOROOT=/usr/local/go

GOPATH is the location of your golang project.


So finally set the PATH variable to access go binary system-wide.

$ export PATH=$GOPATH/bin:$GOROOT/bin:$PATH

You can see detail configuration in this article.

Tutorial and Example

You can learning golang programming language from the source below:

Official documentation:

Other documentation:

Or you can learn basic golang programming language from the Telusko channel in youtube. I think this channel is very easy for learning golang.

And you can try my example code from this repository:

That’s it how to install golang and try basic programming with it. I think it’s enough. May be useful and Enjoy!.

Wassalaamu’alaykum Warahmatullahi Wabarakaatuh


Easy read, easy understanding. A good writing is a writing that can be understood in easy ways

Irfan Irawan Sukirman

Written by

Mobile Developer at Tokodistributor.com | Freelancer website and mobile hybrid with Flutter



Easy read, easy understanding. A good writing is a writing that can be understood in easy ways

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade