Ubuntu 13.04 Golang Development environment Configuration

Source: Internet
Author: User
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.

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.