Go language: First, go based on CENTOS7 deployment

Source: Internet
Author: User

A simple introduction: Go is a new language, a concurrent, garbage-collected, fast-compiling language. It has the following characteristics:
It can compile a large go program in a few seconds on a single computer. Go provides a model for software construction that makes dependency analysis easier and avoids the beginning of most C-style include files and libraries. Go is a static type of language, and its type system has no hierarchy. So users don't need to spend time on defining relationships between types, which makes them more lightweight than typical object-oriented languages. Go is a completely garbage-collected language and provides basic support for concurrent execution and communication. According to its design, go intends to provide a method for the construction of system software on multicore machines.

This study is in the CENTOS7 environment, the operating system is not required, memory enough CPU can run without the premise of

1, to Golang official website download Go package: https://golang.org/dl/
Download and unzip to/usr/local/, generate go Directory
New Gopath Directory
Export Goroot=/usr/local/go
Export gobin= $GOROOT/bin
Export path= $PATH: $GOBIN
Export Gopath=/mnt/wwwroot/gofile
: Wq Save

Make it effective

To see if the configuration was successful
Go version
Go version go1.7.1 linux/amd64

Simple test:
Vim Hello.go
Package Main
Import "FMT"
Func Main () {
Fmt. Println ("Hello, World")

Go Run hello.go

Hello, World

2, here need to install a Go Language integrated coding program, Goland more convenient and better to see?
Official website: https://www.jetbrains.com/go/features/Download the version of Windows, the simple configuration after the fool installation can write go program!
Activation Code Baidu casually find a, here Link:

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.