Go plugin installation on the Go language-sublime

Source: Internet
Author: User
Tags install go gocode

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.