This is a creation in Article, where the information may have evolved or changed.
Golang Development Environment Construction
Golang
入门教程
开发环境搭建
Introduced
The go language is a new programming language launched by Google that can reduce the complexity of your code without compromising application performance.
Rob Pike, Google's Chief software engineer, said: "We have developed go because of the difficult software development of the last 1 to more than 0 years
The degree of frustration.
"Go gives me the experience I've never had before," said Rob Pike, Google's senior software engineer, Rob Paik. Parker said,
Like today's C + + or C, go is a system language. He explains, "it can be developed quickly, and it's a real
The right compiler language, we open it now because we think it's very useful and powerful.
- Baidu Encyclopedia
- Wikipedia
- Golang official website
Installation
Windows
- Official notes
Http://golang.org/doc/install#windows
- MSI download
https://golang.org/dl/
- Idiot-style down-mount
- Set the Goroot to go in the system variable, gopath the working directory for the Golang project
- Golang environment test, CMD or powershell input go, shown below indicates the installation configuration is successful
- For more information, please check the official documentation directly.
Linux
- Download the corresponding package according to the operating system
- Extract
$ tar -C /usr/local -zxf go1.3.3.linux-amd64.tar.gz
- Add the Bin directory of the Golang to the system variable path
$ export PATH=$PATH:/usr/local/go/bin
- Gopath variables are not required and are primarily used in development environments
- Golang Environmental Testing
Mac
- Download the Golang installation package for installation According to the official instructions
- Installing with homebrew
IDE Configuration
Sublime
- Search and install the Gosublime plugin
crtl+b
You can bring up the command line to compile and execute the go code.
Intellij idea
- Plugins search Golang, installation can
- Restart IntelliJ idea
Eclipse
- Search
goclipse
, and install
- Restart Eclipse
Author: King.han
December 1, 2014