This is a created article in which the information may have evolved or changed.
Mainly to assist Yang brother do kubernetes related work, because Kubernetes and Docker are written by the go language, so after changing the source code still need go language compiler to compile and run. So I'm going to install the Go locale on Windows first.
The tools you need:
- gcc compiler http://gcc.gnu.org/index.html
- Golang compiler https://golang.org/
- Liteide ide:https://sourceforge.net/projects/liteide/
The next step is to put the corresponding installation package down and then install, as far as possible in the English directory do not include Chinese.
Then configure the system environment variable and add a Gopath variable to fill in the Go compiler's installation directory.
Open Liteide, in the edit current environment, see, modify the relevant configuration, such as:
Finally, choose Win64 Environment, CTRL+R can compile and run the program, go language development!
Finally, a little bit of programming language topic, look at the idea of going to go seems to be mixed, this is very normal, no language is perfect.
Go developed by Google, and used in the distributed environment, there must be a sense of its existence, to a certain extent, to solve the pain points of the back-end language, C + +, but the lack of generics, error handling and syntax is more strange, also blocked many want to go with the programmer.
Anyway, what to learn with what!