Home >Backend Development >Golang >How to install golang on Windows

How to install golang on Windows

PHPz
PHPzOriginal
2023-04-23 10:06:55815browse

Golang is an efficient and reliable programming language that has a wide range of applications whether it is developing web applications, mobile applications or distributed systems. This article will introduce how to install golang on Windows.

Download the Golang Windows installation package

First, you can download the corresponding version of Golang from the official website [https://golang.org/dl/](https://golang.org/dl/) Windows installation package, select the .msi installer under the Windows platform to download. You can choose the version you need according to your needs.

Install Golang

After the download is completed, double-click to open the installation program and follow the installation wizard. You can use the default installation location. After default installation, a directory will be generated under C:\Go. As shown in the figure below:

How to install golang on Windows

Configure environment variables

Right-click on the computer desktop, select Properties, and enter Advanced system settings , select environment variable in the pop-up window.

In the System Variables below, find the Path variable, select it and click Edit.

In the pop-up editing window, add C:\Go\bin to the variable value and click OK to save.

As shown in the figure below:

How to install golang on Windows

Installation completed

At this point, the installation of Golang on Windows is over. You can enter go version through the command line to check whether the installation is successful.

How to install golang on Windows

#Now you can start developing using Golang under the Windows platform!

The above is the detailed content of How to install golang on Windows. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn