Go lang Preliminary installation

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

I've heard of Go Lang's name, and I've had time to make up my mind.

The book currently being read is the "Go Language Programming" written by the Xu Xiweiof seven cows.

Well written: At the very beginning, the meaning of Go Lang appeared and some good features of some languages were clearly stated;

The following is basically a summary of the contents of the book, convenient for those who need to use directly.


1. Go env installation and configuration

Go Lang's official website (https://golang.org) Even with a ladder, access is still very slow. But there is a fan of the site (http://golangtc.com/), related resources in this domestic station can also be downloaded to.

(1) First download the OS installation package here: Http://golangtc.com/download

Currently the latest version is GO1.4RC1

(2) Configuring environment variables

First, you need to set the environment variable goroot to go root path;

Secondly, add goroot/bin in path;

Finally, in the command line, enter:

Go version

(If the Go Bin is only written into path, do not set Goroot, the above command will still output normal printing )

Go env

( If the Go Bin is only written into path, do not set Goroot, enter go env below Win7 will prompt: Go:cannot find goroot directory:c:\go)

Check whether the result is normal output, no error.


2.IDE settings

(1) notepad++

The description of the notepad++ setting in Go language programming is obsolete. the relevant settings can refer to this blog post, but this article is a bit outdated. Update below:

(a) Download the Go lang support package here;(digression: This address can also be downloaded to support packages for other languages used by notepad++, such as Google's protobuf, etc. )

(b)

(2) Eclipse

Google has the plug-in for developing eclipse: Goclipse, but requires a higher version, see below:

Requirements:

Eclipse 4.3 (Kepler) or later (http://www.eclipse.org/).

A 1.7 Java VM or later (http://www.java.com/). Otherwise Goclipse would silently fail to start.


The next article summarizes the syntax features of Go lang.


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.