CentOS6.4 Installation Golang Environment

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

What is go?

Go is a compiled system programming language with concurrent support and garbage collection , designed to create a high performance and dynamic language development in a statically compiled language A programming language that has a good balance between the points.

What are the main features of go?

type safety and memory security

high concurrency with very intuitive and very low-cost scenarios

Efficient garbage collection mechanism

Fast compilation (also solves too many problems with header files in C language)

For multi-core computers * * * can improve the solution

UTF-8 Encoding Support

Install Golang environment under CentOS 64bit

Download install Fedora Epel installation source

RPM-IVH http://ftp.riken.jp/Linux/fedora/epel/6/i386/epel-release-6-8.noarch.rpm

Installing the source of HOP5

Cd/etc/yum.repos.dwget Http://www.hop5.in/yum/el6/hop5.repo

Installing the Golang RPM package

Yum Install-y Golang

Write the first Go language demo, just like all languages, start with Hello World

[Golang@localhost ~]$ cat hello.gopackage mainimport "FMT" Func Main () {FMT. Println ("Hello, World")}

Take a look.

 [Golang@localhost ~]$ go run hello.gohello, world. 
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.