go installation and environment variable settings

1, go to install

https://studygolang.com/dl  official website to download, they need to find the version, fool installation

2.go environment variable settings

To set the windows below the root and path

root representatives go installation path, that is, go perform directory GOROOT

The new project represents the path of the directory you want to place the environment GOPATH

Set accordingly through the windows environment variable can be

3. The principal said that under GOPATH, mainly the case of the new project directory placement

The new go to place the project file, first create procet file in the E drive, which must have a document after procet bin, pkg, src three folders, file format in the figure below, then your GOPATH environment variables should be E: \ goproict

 

4, on github download package, the corresponding project file download

 

Guess you like

Origin www.cnblogs.com/1204guo/p/11687154.html