Sublime Text 3 builds go language development

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

Install GO Basic Environment

Go to the Go website to find the go to win under Msi.exe:
https://golang.org/

Configuring the GO environment variable

Three environment variables:

path:;F:\programming\extra language\go\bin;//执行命令用GOPATH:F:\study\extra language\go\GOPATH//下载依赖包用,类比Java的mavenGOROOT:F:\programming\extra language\go//go的安装根目录

Download Gosublime Plugin

Configuring the Gosublime Plugin

{    "env{        "GOPATH": "F:/study/extra language/go/GOPATH",        "GOROOT": "F:/programming/extra language/go"    }}

Run Hello.go

package mainimport"fmt"func main() {    fmt.Println("Hello, World")}


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.