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
- In Windows, go to Settings > System > About and check System type. On most Intel and AMD PCs, choose the Windows
amd64MSI. For Windows on Arm, look for thearm64installer. Check Go’s system requirements if you use an older release of Windows. - Download the matching MSI from go.dev and open it.

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


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 versionYou 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.

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.
Reader Comments 0
Sign in with email or Google to join the discussion.