Since GOPATH must not be the same as GOROOT, we shouldn't use the default GOROOT(C:\go) install path as an example

Dominic Della Valle 2018-01-07 08:45:14 -05:00
parent b054e878db
commit 26a8f7faf0

@ -42,16 +42,17 @@ $ source ~/.zshrc
# Windows
Your workspace can be located wherever you like,
but we'll use `C:\go` in this example.
Note that `GOPATH` must not be the same path as your Go installation.
but we'll use `C:\go-work` in this example.
* Create folder at `C:\go`.
__NOTE:__ that `GOPATH` must not be the same path as your Go installation.
* Create folder at `C:\go-work`.
* Right click on "Start" and click on "Control Panel". Select "System and Security", then click on "System".
* From the menu on the left, select the "Advanced systems settings".
* Click the "Environment Variables" button at the bottom.
* Click "New" from the "User variables" section.
* Type `GOPATH` into the "Variable name" field.
* Type `C:\go` into the "Variable value" field.
* Type `C:\go-work` into the "Variable value" field.
* Click OK.
## Windows 10