One of the go languages (Environment Building and Hello World)

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

First, download and install go

Address: Https://code.google.com/p/go/downloads/list According to their own system, choose version, My is window7, so under the MSI installed version.

Second, the test environment

Open cmd. Input go enter, found a hint, this is right, the installation is successful.

Third, Hello World

Create a new file called Hello.go to edit with Notepad, as follows:

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

Open cmd to run D:\go_demo\hello.go results as shown in the Go run


This shows that we have been successful in Hello World.


IV. Development environment

Notepad is, after all, a inefficient development tool, especially for our Java programmers, who are more accustomed to eclipse development. Therefore, we will now configure the Eclipse plug-in.

But before we do, we have a few things to do:


1. Set Environment variables: Add%git%/bin directory Add%path% variable, create a new environment variable named: Gopath, the location is specified as: Any new directory on your computer.

2. Download Liteide, Address: https://code.google.com/p/golangide/downloads/list

3. Create a new project. Okay, OK.


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.