Go language development environment-win7

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

Today is nothing to do, toss the go language, it may be used to write a server program.

The following is Wikipedia's introduction to the Go language

Http://zh.wikipedia.org/zh-cn/Go

I machine is windows7 32 bit, myeclipse10.1

1. First download Gomingw

Because the go language is not natively supported for Windows, GOMINGW is required, andGomingw is the porting of the Go language compiler on MinGW.

Download address for

Https://code.google.com/p/gomingw/downloads/list

What I'm downloading here is

Go.weekly.2012-02-22.windows-386.zip

Unzip to the hard drive after downloading, I unzip to "E:\go\go"


Then configure the environment variables


The path variable is added;%gobin%


After the configuration is complete, enter the go return in the console and you should see



2. Installing Goclipse

Click on "Help---" in eclipse install new soft ...

Enter Address

http://goclipse.googlecode.com/svn/trunk/goclipse-update-site/

Installation can be done.

After you restart Eclipse, configure go.


3. Run Hello World

Create a new Go project

Create a new main folder under the SRC directory and create a new Main.go file in the main folder, as follows

Package Mainimport "FMT" Func Main () {FMT. Println ("Hello, World");}




Save, right-click to run


Finally recommend an introductory tutorial

Http://www.aqee.net/go/a-tour-of-go

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.