DEV Community

Cover image for Install and Config Golang on Windows10
Plume
Plume

Posted on • Edited on

Install and Config Golang on Windows10

Download Page: https://golang.org.dl

Image description

.msi is Windows's new install package file just double click it to install.

Environment Variable Config

Image description

Variable GO111MODULE's value should be set to "on" to enable module control tools(go mod tools).

Variable GOBIN's value should be set to "$go/bin" where the "$go" is the directory where you installed Golang.
So that the Windows system can find the go tools in "$go/bin" when you perform them in cmd.

Variable GOPATH's value should be a path, which will be used to save the modules installed from the remote repository.

Top comments (0)