This is a created article in which the information may have evolved or changed.
Preface: Go language is a relatively new language, the Internet to understand a bit, the future trend is still very good, so ready to start self-study go, by the way record, do not like to spray, what said is not correct, welcome correction!
1: Environment Construction
I personally think that the JetBrains company out of the IDE is very useful, whether it is IntelliJ, or clion, are in use, think it is very good, real-time is Android Studio, is also based on the IntelliJ IDE, So individuals still like this company out of the IDE
Download Golang IDE First, address: https://www.jetbrains.com/go/download/#section =windows
And then the process was installed, and there was nothing to say.
The second step, download the Go Language SDK, which can be downloaded in the Golang Chinese community
Address is: HTTPS://STUDYGOLANG.COM/DL
My computer is windows, so the download is
Individuals choose to download and install different installation packages according to their computer system
After installation, enter the go env below CMD
OK, the installation is complete.
The final step is to open the installed Golang IDE and create a new project, and if you haven't used it, he'll let you choose the address of the Go SDK and choose the SDK address from the previous step.
Then the environment is built.
Of course, after the environment has been set up, you can learn the go language, usually we know a language, to learn to visit the official website to see his documents, but, go on the official website is in foreign countries, wood VPN is not directly accessible, however, we can use its built-in command to create a local official website, open cmd, input godoc -http=:6060
And then enter http://localhost:6060/in the browser.
The official website is out.