Emacs + Gocode makes writing go language more "turn"

Source: Internet
Author: User
Tags gocode
This is a creation in Article, where the information may have evolved or changed. "Turn from" http://blog.csdn.net/qq358860528/article/details/6301222

Emacs + Gocode makes writing the go language even more power

First here I would like to thank Dataangel (qq:996421165) Children's shoes. Personal comprehension is poor, but he is still teaching patience. It's just a matter of being in touch with the go language. Install the configuration environment, write the code environment and compile the environment to do a consolidation. Hope to be able to learn the go language friends to bring convenience.

I am using the Windows edition to write. Other systems have not been configured. If you have a free configuration, you will continue to write a blog ~~! Just started to learn how to write a blog not good still hope to forgive.

Go language group: 102319854

Some common links:

http://golang.org///Official website

http://bbs.golang-china.org///Chinese Forum

http://code.google.com/p/golang-china///Translating documents

http://code.google.com/p/gomingw///windows Compilation

Project management, compile recommended use Liteide

Write code emacs +gocode

Download Gocode to your go locale under the bin directory

To first configure the Go language environment variables, add to the system variables (online tutorial I do not speak here)

Open the command line and execute the following command

Gocode Set Propose-builtins True
Gocode Set Lib-path c:/go/pkg/windows_386

Gocode Set

See if the settings are successful (shown below for success):

View Plain
  1. Propose-builtins =true  
  2. Lib-path ="C:/go/pkg/windows_386"  

Download emacs

Setting environment variables HOME is the Emacs path

Download Go configuration file

http://download.csdn.net/source/3158030

Note: Configuration completion will generate a. config folder and a GOCDE configuration file will be generated. of the build sequence.

In the cmd command, enter: Gocode-s
Start using

Try Emacs To create a go file write a HelloWorld bar ~~!

I have 2 problems when I use my personal experience

1. Sometimes you can not hint: it is estimated that the load analysis file has not been analyzed, and so on.

2. You will die when you write go code without using Gocode-s. It is estimated that there is a problem with the socket not being monitored.

The others are quite ok. It would be great if you could integrate and compile project management. Personal use of VC habits. Plus the level is limited AH.

Liteide management project compiled to be quite convenient if you can integrate Gocode ~~~!

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.