To use go, learn about the project and first select the IDE.
because it is the server development, so the first thought in vim to do the configuration, I mainly need to syntax highlighting and automatic completion, syntax highlighting is better, the source (seemingly the latest only in this version of the Vim configuration of Go) inside misc/ Vim the following configuration information CP under the home directory of the. Vim folder on the line, but automatic completion of the time, the installation of Gocode has not been effective, not resolved, and finally give up vim.
The second option is to install the Go plug-in under Windows Sublime, and then the SMB service connects to the server's code, which was done before PHP, so it was recorded.
1. Install the Windows version of Go,golang China has various versions of the domestic image, download quickly, this site is not bad, can be used as a learning go resources.
2. Configure Environment Variables
(1). New variable name: GOBIN variable Value: C:\go\bin
(2). New variable name: Gopath variable Value: A custom directory to store git downloads
(3). New variable name: Goroot variable Value : C:\go
(4). Edit path at the end of the variable value of path plus%gobin%
3. Sublime inside use CTRL shift p, command install to enter module installation mode, need to be installed go Sublime
4. Install Go Code: First make sure that the Windows command-line version of Go and Msysgit is installed, and then command:
Go get-u github.com/nsf/gocode
Go install github.com/nsf/gocode 5. Modify the Gosublime configuration: Under the Preferences menu, locate the package Settings, find Gosublime, and then find Settings-default. To open the file, add the following configuration and save:
6. Note A small problem:
Install Gocode step, go get-u github.com/nsf/gocode These two commands in the console input does not respond, under the CMD line, And to get rid of Goarch GOOS These two environment variables, otherwise it will show windows/386 must be bootstrapped using Make.bat
Go plugin installation on the Go language-sublime