Go Language Sublime Text 2 compilation settings

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

Now go language MS is often mentioned, I went to the fun to see ~ ~

The compiler of Go language windows can go to http://code.google.com/p/gomingw/downloads/list download

Download unzip config environment variable
Environment variables (environment variables, advanced system settings, My Computer), under the tags of the system variables, create a few key-value pairs as follows:

(1). New variable name: GOBIN variable Value: C:\go\bin

(2). New variable name: Goarch Variable Value: 386

(3). New variable name: GOOS Variable Value: Windows

(4). New variable name: Goroot variable Value: C:\go

(5). Edit path at the end of the variable value of path plus%gobin%

Editor selection Sublime Text 2 seems to be a recent hot editor.

Sublime Text 2 Compilation configuration settings method

Tools->build System->new Build system creates a new configuration file that is set to

{    ["Go", "Run", "$file _name"],    "File_regex": "^[]*file \" (... *) \ ", line ([0-9]*)",    "Working_dir": "$file _path",    "selector": "Source.go"}

Save

And then you can compile it with ctrl+b.

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.