How to Install and Configure Go on Windows: Step‑by‑Step Guide
This tutorial walks you through downloading, installing, and verifying Go on a Windows machine, configuring the GOPROXY proxy, and choosing a suitable IDE, providing clear screenshots and command‑line instructions for a smooth setup experience.
Introduction
Hello, I’m a developer sharing how to set up the Go programming language development environment on Windows. The installation process is straightforward, similar to Python, and automatically adds environment variables.
Download
Official Go mirror site: https://golang.google.cn/dl/. Choose the latest version; Go code is backward compatible.
Installation
Locate the downloaded installer.
Double‑click to install.
Accept the license agreement.
Customize the installation location.
Click Install.
Wait for the installation to finish.
Click Finish to complete.
Verify Installation
Open a CMD window and run go version to confirm the installation.
Note: Since Go 1.11+, use go mod for dependency management; you no longer need to set GOPATH or other legacy variables.
Configure GOPROXY (Proxy)
The default GOPROXY ( https://proxy.golang.org,direct) is often inaccessible in China. Check the current setting with go env, then set a domestic mirror, e.g., https://goproxy.io or https://goproxy.cn,direct: go env -w GOPROXY=https://goproxy.cn,direct Reopen CMD and run go env to verify the change.
Go Development Editors
Common editors for Go are VSCode and Goland. This guide recommends Goland (from the same company as PyCharm). Installation and licensing details are omitted.
Why Not VSCode
The author experienced unreliable auto‑completion and auto‑save in VSCode, leading to a switch to the dedicated Go IDE Goland.
Conclusion
The tutorial ends here; the author invites readers to like and support the content.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Python Crawling & Data Mining
Life's short, I code in Python. This channel shares Python web crawling, data mining, analysis, processing, visualization, automated testing, DevOps, big data, AI, cloud computing, machine learning tools, resources, news, technical articles, tutorial videos and learning materials. Join us!
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
