Ready Go series: Installation of Go

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

Http://www.cnblogs.com/dongritengfei/archive/2011/04/30/2033246.html

The go language is the second language that Google has introduced after simple, the language is known as: 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.

1. Installation

The installation steps on Windows are as follows:

    • Download GO development environment: Http://code.google.com/p/gomingw/downloads/list
    • If the zip is downloaded, unzip it, and if it is exe, install it directly.
    • Configuring Environment variables
      • Goroot = D:\Program Files\go
      • GOBIN =%goroot%\bin
      • Goarch = 386
      • GOOS = Windows
      • If there is no semicolon at the end of path, add it and add%goroot%\bin at the end

Linux, FreeBSD, OS x installation Please crossing the introduction of the network: http://golang.org/doc/install.html

2. Testing (under Windows)

Create a file from anywhere: Gotest.go

Save after writing the following code:

Package Main

Import "FMT"

Func Main () {
Fmt. Printf ("Hello world!")
}

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

8g Gotest.go Compilation

8l Gotest.8 Links

8.out.exe execution

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

3. Development tools

Liteide (support syntax highlighting) http://code.google.com/p/golangide/downloads/list

4. Related Documents

1. After downloading the Go development environment, DOC will have very detailed documents, or the officer net to see, but these are in English

2. If you want to see Chinese, go to http://code.google.com/p/golang-china/.

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.