Go language VIM Environment configuration note

Source: Internet
Author: User
Tags gocode
This is a creation in Article, where the information may have evolved or changed.

Details Here are detailed, the front can follow the introduction of a step-by-step
Main card in 3, installation go.tools Binaries This step, find a lot of information to find the whole.
First, you can build a local directory to store the source code, and this directory is set to Gopath, that is, the following sentence into the ~/.bash_profile

Export Gopath= $HOME/dev/goapp

Then set up three directories in the Goapp bin, pkg, src, clone the following source code under SRC

Gocode

git clone https://github.com/nsf/gocode.git

goimports GorenameThese two can be found under tools.
git clone https://github.com/golang/tools.git

Godef

git clone https://github.com/rogpeppe/godef.git

Golint

git clone https://github.com/golang/lint.git

ErrcheckThe installation requires both

git clone https://github.com/kisielk/errcheck.git
git clone https://github.com/kisielk/gotool.git

When you're done, you can use go install
For example, the first can go install Gocode, some may report the error of the directory, need to properly adjust the source directory .
The default binaries are installed under goapp/bin and need to be moved all the $GOROOT/bin below, mine is in/usr/local/go/bin

You can go back and look at the above article.
There are two questions not understand: Mac under item highlighting does not take effect, Oracle source code temporarily did not add, do not know what the role.

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.