Go Language Linux Configuration

Source: Internet
Author: User
This is a created article in which the information may have evolved or changed.

Go installation

Http://code.google.com/p/go/downloads

Configuration reference

Https://github.com/Unknwon/the-way-to-go_ZH_CN/blob/master/eBook/02.3.md

1. Configure Environment variables

Some systems are ~/.profile.

~/.bashrc

        

    

Remember to install the go package to/usr/local, which can be another directory, worrying about causing other unnecessary

Then restart the cmd terminal and execute the go EVN:

    

2. Install Go

I downloaded the source package,

Reference Official Document: Http://golang.org/doc/install/source#install

Cd/usr/local/go/src

./all.bash

Process:

    

Installation Complete:

    

My system is the CentOS 64B 6.3 built under the VM

3. Helloworld.go

        

Output Normal:

      

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.