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
- Propose-builtins =true
- 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 ~~~!