Windows Sublime text3 Build go locale

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

First step: Go environment and configuration

1. Install the Go Development environment (omitted), assuming the Go installation directory is C:\Go

2, configure the environment variables, the following two environments do not add.

Data reference: http://studygolang.com/articles/4454 (be sure to refer to, configure the variable he said more detailed)

Description: Gopath is a working directory and can have multiple. For specific instructions, see the reference website

Goroot installation directory for GO development environment

Then configure the path

There may be two path, I mainly use the above, but still added; C:\Go\bin is the bin directory under the Go Development environment directory.

Step Two: Run the program

Reference URL: http://studygolang.com/articles/4454

1, installation sublime Text3 (omitted)

2, Sublime Install the package Control

Shortcut key: Press CTRL +' Paste the following to enter

' Package Control.sublime-package ' ' WB ' ' http://sublime.wbond.net/ ' + pf.replace (','%20'). Read ())
View Code

3, Installation Gosublime

Shortcut key: Ctrl+shift+p

Enter the Install package return

Enter Gosublime carriage return

4. Simple Go Program

Package main     " FMT "     func Main () {      fmt. Println ("Hello,World")  }  

5, compile, run

compile: Key ctrl+B input Go build hello.go run: Ctrl+B input go run hello.go
View Code

Finally say, notepad++ also can run Go development project, interested can Baidu search.

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.