Go Download https://golang.org/dl/
Ide-goland Download http://www.jetbrains.com/go/
This installs the Go1.9.3.windows-amd64.msi and Goland-2017.3.1.exe versions.
Install Go
Double-click the installation package and go down all the way next.
Once the installation is successful, use Go version to view go versions to determine if the installation was successful.
Configuring System Environment Variables
Goroot is the Go installation directory
Gopath is the search path as the compiled binary storage destination and import package (in fact your working directory, you can create your own go source file under SRC, and then start working)
Do not set the Gopath as the Go installation path
Gopath consists of three main directories: bin, pkg, SRC
The bin directory mainly contains executable files; Pkg directory to store compiled library files, mainly *.a files; The source files of go are mainly stored in the SRC directory.
You need to configure the executable directory in the Gopath to the environment variable, otherwise you will not be able to use the third-party go tool that you download yourself.
Added in path:%goroot%/bin;%gopath%/bin;
Installing Goland
Execute the installation file, all the way next. Because it is a trial version, there is a 30-day limit. Due to reload on it.
Skip the license link directly and enter the project configuration interface. License can be re-configured later
Path configuration to Gopath below
Enter the engineering interface, right-new-go file, create HelloWorld
To modify the contents of a file:
"FMT"func Main () { fmt. Printf ("Hello world!" )}
Right click on the file and select Run.
Configure GitHub
Go to file-setting, search GitHub for configuration
Windows Go Development Environment configuration