Go language--the first Hello World

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

An accidental opportunity to learn about the go language, so always remember. But I don't remember what the state was at school, so there was no development environment for the go language. At that time did not come out internship, the inside of the Java configuration file is very repulsive. Later to now, work for a while, know the SSH architecture, I configured some files, only to find the configuration file mediocre. Today, the work is not too busy, so spare time, it is configured to go language environment, and wrote the first go language HelloWorld. This is still a classic! Hello,go!

First of all, introduce my computer, the notebook I use is Acer 5560G,AMD processor. 64-bit Win7 operating system. So my go language environment is built on these configurations as well. As for the Linux system is not ready to configure the Go language development environment for the time being.


Talk less and get to the chase.


The first step is to download the go installation package.

to https://code.google.com/p/go/downloads/list download the corresponding operating System package, I downloaded is go1.1.2.windows-amd64.zip. However, the first time to download the MSI file, this file on the Internet that can not configure environment variables, but after I installed, in the DOS window to enter the go is not right. I don't know if I want to configure environment variables. Do not try, re-use the self-zip file after uninstalling. Configure environment variables, many online, do not repeat. After the configuration is successful, enter go in the DOS window and you can see the same Java environment when you enter Java.

Second, after the configuration is successful, developing the go language under eclipse requires a plugin to be installed. But this plugin's address is very strange,http://goclipse.googlecode.com/svn/trunk/goclipse-update-site/, under my eclipse is always unable to find. Later I searched the internet for a long time, accidentally see after the HTTP plus s. I tried it, and sure enough. Last Address: https://goclipse.googlecode.com/svn/trunk/goclipse-update-site/..... I don't know how other people are, at least mine is like this. However, this is still a strange place, although found goclipse this plugin, but according to its guidance and did not install successfully. Later, I was in the windows-"preference, see a Install/update menu, and then in this menu see the path just now, reload again."



Thirdly, you can write a program by yourself. This online is also a lot of. However, it is to see for themselves, take a picture of it.




Finally, this is only the first step of success. Anyway is also leisure time study, so follow-up question. Keep records when you are free.

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.