This is a creation in Article, where the information may have evolved or changed.
env:
Ubuntu 13.04I386
Go 1.0.3
Sublime Text 2
Go/golang Good IDE combination: Gocode + Sublime text 2 + gosublime
first install Go, two methods:
1. Automatic: sudo apt-get install Golang Configure the environment system to help you configure
2. Manual: Download go binary package, extract into the/usr/local/directory (this directory is go recommended, I install to other directories in the configuration Gocode automatic completion of the problem ·), and then configure the go environment, the ~/.BASHRC file is added as follows:
Export Goroot=/usr/local/go
export gobin= $GOROOT/bin
Export Goos=linux
Export goarch=386
export path=.: $PATH: $GOBIN
export gopath= $HOME/goproj
then update the environment: source. BASHRC
specific instructions for each variable see: Https://code.google.com/p/golang-china/wiki/Install
http://golang.org/doc/code.html
Installing the Gocode is simple because the front is configured well
[sudo] go get-u github.com/nsf/gocode
Installing sublime Text 2 and package Manager
Many online tutorials
Installing Gosublime
just install it directly in sublime text 2, but here's the problem I'm having.
the front has been set up Gopath, but gosublime but hint I didn't set gopath, I do not know where the error? A temporary workaround is to configure the Gosublime file as prompted
to this go IDE is configured, but found that my auto-completion function is not very good, I do not know is gosublime itself or not configured well, such as the key words of the go language (such as string, int, etc.) there is no automatic completion, find a half-day did not find an explanation, can only first such will.