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
At the time of writing the latest stable Golang release was version:
Wait for the download to complete.
Step #2: Install
Open the location of the downloaded executable.
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
The Golang installer wizard will start. Click
Make sure the
I accept the terms in License Agreement checkbox is selected. Click
You can change the installation location by clicking on the
In this example, we keep the default install location of
Install to start the installation.
The Golang installation will now start.
A progress bar shows the various steps that are executed.
Once the installation is complete, click
Step #3: Test
Let’s test the setup.
Click on the search button. Then type “cmd” (without quotes).
Click on the
Command Prompt shortcut.
Wait for the command prompt to open.
Type “go version” and press
The above command prints the installed Golang version:
go version go1.11.
Congratulations, you have installed Golang on Windows 10!
If you want to know your
GOPATHdirectory, type “echo %GOPATH%” in a command prompt and press
Now go ahead and learn some Golang basics.
Have fun coding!
If you liked this guide leave a short message below.