Go Development Environment Configuration

Source: Internet
Author: User
Tags install go

Go Development Environment Configuration
Go (golang) is an open-source programming language that is easy to build simple, stable, and efficient software.

The market share of the Go language generated for concurrency is growing. Configure the development environment for future study first.


This is very simple. Visit the Go official website to download the link, select [Microsoft Windows] and click Download

After the download and installation are complete, you need to set the environment variable

Right-click my computer, click Properties, click Advanced System settings, and then click environment variables.

System variable Path

Edit Path and append the corresponding installation Path code to the end.

1 C:\Go\bin;
System variable GOROOT

Create GOROOT and add the corresponding installation path code

1 C:\Go\
Check whether the installation is successful

Open the command line and execute the command

1 go version

You can see the Go version information, as shown in the following figure.


Install the SSH remote tool and log on to your Linux server.

Execute commands in sequence

123 yum -y install mercurialyum -y install gityum -y install gcc

After the installation is successful, you can download and install the compressed package.


Go to the Go official website and select [Linux] to copy the link.

Execute Command

1 tar https://storage.googleapis.com/golang/go1.6.linux-amd64.tar.gz

You can also select Linux and click Download. After the download is complete, upload the package to the server.


After the download is complete, run the command

1 tar -zxvf go1.6.linux-amd64.tar.gz
Configure Environment Variables

Execute Command

1 vi /etc/profile

Open the profile configuration file and add the following code:

123 export GOROOT=/root/go # Note that the GOROOT value is the decompressed path corresponding to Go.export PATH=$PATH:$GOROOT/binexport GOPATH=$GOROOT/gopkg

After saving, you need to update the environment variable and execute the command

1 source /etc/profile

Check whether the installation is successful.

Now, the development environment configuration for the Go language is complete.

How to install Go for Linux

Getting started with Linux-installing Go in Linux

Install Go Language Pack in Ubuntu

Go language programming (HD) full-version ebook

Go language and beauty-surpassing "Hello World"

Why do I like the Go language?

Implementation of the Go language memory distributor

This article permanently updates the link address:

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.