Go Language Development Environment Setup (Ubuntu 16.0.4)

Source: Internet
Author: User

The Go programming language is an open source project that makes programmers more productive. The Go language is highly expressive, concise, clear and efficient. Thanks to its concurrency mechanism, programs written in it can make very efficient use of multicore and networked computers, and its novel type system makes the program structure flexible and modular. The Go code compiles into machine code not only very quickly, but also has a handy garbage collection mechanism and a powerful runtime reflection mechanism. It is a fast, static type of compiled language that feels like a dynamic type of interpreted language.

Installation

Download the Go Language installation package:

wget https://storage.googleapis.com/golang/go1.10.2.linux-amd64.tar.gz

Unzip the file:

sudo tar-c/usr/local-xzf go1.10.2.linux-amd64.tar.gz

To create a Go language working directory:

mkdir $HOME/go


Configuring Environment variables

Switch to the current user root directory under enter command gedit. BASHRC or VI BASHRC

Then you will:

Export Goroot=/usr/local/go

Export Gopath= $HOME/go

Export path= $PATH: $GOROOT/bin: $GOPATH/bin

Append to the last face.


Test if your go was installed successfully

Go version


Installation succeeds if the version number is displayed correctly

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.