How to install Go Lang on Windows, macOS & Linux

Learn about what is Go Lang & how to get it up and running on your Windows, Mac or Linux systems.

Shivam Goyal
Nov 15, 2019 · 5 min read
Image for post
Image for post

What exactly is Go Lang?

The Go programming language (also known as GoLang) is Google’s general-purpose programming language developed for the multi-core reality of today’s computers.

Why use Go Lang? +1’s of GoLang?

Go is expressive, concise, clean, and efficient. Its concurrency mechanisms make it easy to write programs that get the most out of multicore and networked machines, while it's novel type system enables flexible and modular program construction. Go compiles quickly to machine code yet has the convenience of garbage collection and the power of run-time reflection. It’s a fast, statically typed, compiled language that feels like a dynamically typed, interpreted language.

Is Go Lang the future? or not?

As Go Lang is made by Google, the project has regular financing. So, my answer is Maybe or Maybe not. The language is quite popular among guys but it’s still not in a position to bring up a revolution, it’s quite young.

Hail Google, Hail GoLang. ✈️

Firing GoLang on your system

Setting up GoLang involves three basic steps as follows:

  1. Installing the packages
  2. Verifying the up & running GoLang installation

Minimum System Requirements

Image for post
Image for post
Minimum System Requirements

Downloading Go Lang Installation Files

Visit Go Lang’s official download page to download the installer according to your operating system.

Image for post
Image for post
Downloadable options available

Setting up on Windows

  • Double click the MSI installer, you just downloaded to start the Go Lang installation on your Windows system.
  • Follow the prompts to install the Go tools. By default, the installer puts the Go distribution in c:\Go.
Image for post
Image for post
Running MSI Installer for Go Lang

Setting up on macOS 🍎

  • Double click the PKG installer, you just downloaded to start the Go Lang installation on your macOS system.
  • Follow the prompts to install the Go tools. By default, the installer puts the Go distribution in /usr/local/go.
  • The package should put the /usr/local/go/bin directory in your PATH environment variable. You may need to restart any open Terminal sessions for the change to take effect.

Setting up on Linux

  • Extract the .tar.gz archive you just downloaded to /usr/local, creating a Go tree in /usr/local/go
$ sudo tar -C /usr/local -xzf go1.13.4.linux-amd64.tar.gz
$ export PATH=$PATH:/usr/local/go/bin

Verifying your installation

$ cd C:/Users/{%USERPROFILE%}
$ mkdir go/src/hello
$ cd go/src/hello
package mainimport "fmt"func main() {
fmt.Printf("Hello, World..!!\n")
}
$ go build
  • If the installation had been correct, the exe will print Hello, World..!!
Image for post
Image for post
Live commands on Windows Terminal

Congratulations!

YaY..!! 🥳 Welcome to the world of Go Lang. The installation is finished and you are now ready to show up your mettle in programming.

🎯 That’s all for today.

If you got any queries hit me up in the comments or ping me over on hi@itsshivam.com 📧

If you learned even a thing or two, clap your hands👏 as many times as you can to show your support! It really motivates me to contribute towards the community.

Feeling too generous? Buy me a Drink 🍺

Wanna collaborate? Let’s talk some tech 😊

Stalk me over on itsshivam.com, GitHub, or LinkedIn. 👀

Image for post
Image for post
Image for post
Image for post

If this post was helpful, please click the clap 👏 button below a few times to show your support for the author! ⬇

FAUN

The Must-Read Publication for Creative Developers & DevOps Enthusiasts

Sign up for FAUN

By FAUN

Medium’s largest and most followed independent DevOps publication. Join thousands of aspiring developers and DevOps enthusiasts Take a look

By signing up, you will create a Medium account if you don’t already have one. Review our Privacy Policy for more information about our privacy practices.

Check your inbox
Medium sent you an email at to complete your subscription.

Shivam Goyal

Written by

Incoming SWE Intern @jpmorganchase • itsshivam.com

FAUN

FAUN

The Must-Read Publication for Creative Developers & DevOps Enthusiasts. Medium’s largest DevOps publication.

Shivam Goyal

Written by

Incoming SWE Intern @jpmorganchase • itsshivam.com

FAUN

FAUN

The Must-Read Publication for Creative Developers & DevOps Enthusiasts. Medium’s largest DevOps publication.

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store