Windows Go language development environment building

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

Golang is Google's second programming language, but unlike Golang and Dart, Golang is a system-level programming language, meaning that he and C + + and Java are the same type of language. Learning Golang is my own hobby and interest, I am more optimistic about this language, after all, the language is in the C + +, Java, Javascript, Python and other powerful and extremely popular language was born, he is to compensate for the shortcomings of the existing programming language, extract their essence. This creates a scenario that adapts to contemporary rapid development and iteration, embracing change, big data, multicore high concurrency. The language is claimed to be: the internet era of C. This means: 1. With the characteristics of Internet web development, that is, the development of high efficiency; 2. The same speed as the C language, that is, the operation is efficient. Believe that these two characteristics will let you find a destination. Hope Golang can be popular, let everyone see its charm. Here are the steps to build your go language development environment:

1. Installation

The installation steps on Windows are as follows:

    • download Go development environment: Http://code.google.com/p/go/downloads/list
    • If you download an EXE or MSI installation package, it is installed directly, do not need to configure the environment variable
    • If the download zip, it decompression, configuration environment variables
      • goroot = D:program files\go
      • gobin =%goroot%\bin
      • goarch = 386                    (If your system is a 32-bit operating system)
      • goos = windows                  (If your operating system is windows, if Linux please write Linux)
      • If there is no semicolon at the end of path, add it and then add%goroot%\bin
    • once installed, run go in cmd, and if the Go command helps, the go development environment is installed correctly.

Installation on Linux, FreeBSD, OS x please see http://ioio.name/golang-install.html or the official website of the introduction: http://golang.org/doc/install.html

2. Testing (under Windows)

Create a file from anywhere: Gotest.go

Save after writing the following code:

<textarea class="crayon-plain print-no" readonly="" style=""></textarea>
123456789 PackageMain Import"FMT"funcMain(){    FMT.Printf("Hello world!")}

In cmd, under the path to the file, use the command to compile, link, and execute

Go Run gotest.go

If the output Hello world! indicates a successful installation of the development environment

The performance of Go 1 is also gratifying, compared to the new performance comparison test for Go 1 and node. JS:http://www.cnblogs.com/QLeelulu/archive/2012/08/12/2635261.html

3. Development tools

    • goclipse (very complete plugin for Go language on Eclipse)/HTTP// goclipse.googlecode.com/svn/trunk/goclipse-update-site/(after installation, you need to configure the Go installation path in Preference–>go, that is, the Goroot directory)
    • liteide (a dedicated go language development environment developed by the Chinese) http://code.google.com/p/golangide/downloads/list   (very comprehensive liteide use configuration document)
    • sublime Text 2 Go development environment build  http://bbs.studygolang.com/forum.php?mod =VIEWTHREAD&TID=20&EXTRA=PAGE%3D1
Related Article

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.