"Backup" Golang development environment construction

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

When the hard drive is broken, it's time to put something in the back of the pack, so decide to write it down.

To golang.org download the installation package if the wall changes to host Windows directly download that MSI installed
Linux download down unzip yourself set the environment variable run that All.bash (like this)
then run the input go output help message on the command line that the installation was successful

download sublime text2 
Install sublime text plug-in Manager press CTRL + ' enter
import Urllib2,os; Pf= ' Package control.sublime-package '; Ipp=sublime.installed_packages_path (); Os.makedirs (IPP) if not os.path.exists (IPP) else None; Urllib2.install_opener (Urllib2.build_opener (urllib2. Proxyhandler ())); Open (Os.path.join (IPP,PF), ' WB '). Write (Urllib2.urlopen (' http://sublime.wbond.net/' +pf.replace (', '%20 '). Read () ); print ' Restart Sublime text to finish installation '
restart Sublime text will have one more package Control under Perferences menu item

Install Gocode code automatically prompts for
address Github.com/nsf/gocode

Go get Github.com/nsf/gocode
Go Install Github.com/nsf/gocode
If go get is not successfully downloaded directly to GitHub and placed in the src/pkg/directory of the Go installation folder then Goinstall

Finally open sublime text
Point package Control->install package->gosublime installation is ready for restart.

Ctrl+b compiling smart code hints, etc.


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.