Go Language Environment configuration
Always want to find a job in the web, so-called 工欲善其事 its prerequisite, before the beginning of course is to choose a language of their own, finally chose go, concise, fast. Grammar is mainly through the official website of Go, and then ready to follow the "Go Web Programming" to learn again, the first step is naturally a local environment, mainly refer to the first chapter of "Go Web Programming". Here is a brief summary of the configuration essentials:
Configuration of the Liteide
Liteide is an open source free go language IDE with simple configuration and easy to get started
- Gopath
Open "View", "Manage Gopath", above is the system configuration (in the environment variable), the lower directory can be added by yourself
- GOBIN
Gobin is to execute the go install
command, EXE file is installed (storage) directory, in the "View", "Edit environment variable" to remove the Gobin before the ;
number, and then add the path name you need, such as I amC:\GoProject\bin
Configuration of the Sublimetext
Sublimetext Needless to say, known as the sexiest editor, to use as the Go language environment, as long as the installation of GoSublime
this plugin can be, in addition to Chinese problems can be ConvertToUTF8
resolved through this plugin
- Gopath and Gobin configuration in "Preferences", "Package Settings", "Gosublime", "Settings User" plus the configuration you need, you can refer to the "Settings Default "content.
Because my configuration GOPATH
is in the system variable, my config file only adds the following content
{
"env": {"GOBIN": "`C:\GoProject\bin"},
}
The overall environment is simple, the main problem is that the GOBIN
above two environments GOPATH
can be configured in the environment variables, GOBIN
you need to follow the method specified above, otherwise the execution go install
command will always prompt the error.
From for notes (Wiz)
Go Language Environment configuration