Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Install Go on Windows and Verify It Works

Download the correct Go installer for Windows, verify it in a fresh terminal, and run a small program to test your setup.

Table of Contents

Download the Windows MSI from the Go website, run the installer, and open a new terminal to run go version. You can install Go before choosing an editor or setting up Git.

1. Download and run the Windows installer

  1. In Windows, go to Settings > System > About and check System type. On most Intel and AMD PCs, choose the Windows amd64 MSI. For Windows on Arm, look for the arm64 installer. Check Go’s system requirements if you use an older release of Windows.
  2. Download the matching MSI from go.dev and open it.

    How to Install Go on Windows Picture 1

  3. Follow the wizard. Keep the default location unless you need a custom one, then finish the installation.

    How to Install Go on Windows Picture 2

    How to Install Go on Windows Picture 3

2. Verify Go in a new terminal

Close any terminal that was open before installation. Open a new PowerShell or Command Prompt window and run:

go version

You should see the installed version and Windows architecture. If the command is unrecognized, open another new terminal and run where.exe go. If it shows no result or points to an older copy, check your PATH for the installed Go bin directory and any older entries.

How to Install Go on Windows Picture 4

3. Run a small program

Create a file named hello.go in a folder you can write to. Save this code:

package main

import "fmt"

func main() {
    fmt.Println("Hello from Go!")
}

Open the terminal in that folder and run go run hello.go. If it prints Hello from Go!, the compiler and runtime are working.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.