How to Download and Install Golang on Windows

1 minute read

download install golang windows

So you want to download and install the Go programming language on Windows?

Then look no further!

In this guide, you’ll learn how to download the compiler…

…and how to install it so you can use it from command line.

So let’s fire away:

What is Golang?

Go (often referred to as Golang) is an open source programming language. It comes with built-in concurrency and is strong and static typed. Go is an imperative language that supports object-oriented programming (OOP).

Golang is maintained and developed by a team at Google and many contributors from the open source community.

Step #1: Download

Head over to the Golang downloads page. Here you will find all the available binary releases.

Verify your windows bit version and click on the corresponding link under the Stable versions section:

  • For 32-bit = goX.XX.windows-386.msi
  • For 64-bit = goX.XX.windows-amd64.msi

In this tutorial, we will download the 64-bit version.

At the time of writing the latest stable Golang release was version: 1.11.

golang latest binary release-page

Wait for the download to complete.

Step #2: Install

Open the location of the downloaded executable.

golang downloaded installer

Double-click it to run the installer.

On Windows 10 a pop-up window will appear: The app you're trying to install isn't a verified app from the Store

Click on Install anyway.

windows 10 install app not in store

The Golang installer wizard will start. Click Next.

golang installer start

Make sure the I accept the terms in License Agreement checkbox is selected. Click Next.

golang installer license agreement

You can change the installation location by clicking on the Change… button.

In this example, we keep the default install location of C:\Go\.

golang installer default location

Click Install to start the installation.

golang installer ready

The Golang installation will now start.

A progress bar shows the various steps that are executed.

golang installer progress

Once the installation is complete, click Finish.

golang installer complete

Step #3: Test

Let’s test the setup.

Click on the search button. Then type “cmd” (without quotes).

Click on the Command Prompt shortcut.

windows search cmd

Wait for the command prompt to open.

Type “go version” and press ENTER.

golang-version-command

The above command prints the installed Golang version: go version go1.11.

golang version output

Congratulations, you have installed Golang on Windows 10!

If you want to know your GOPATH directory, type “echo %GOPATH%” in a command prompt and press ENTER.

Now go ahead and learn some Golang basics.

Have fun coding!

If you liked this guide leave a short message below.

Thanks.

Leave a comment