Welcome to follow my public account [Jizhi Vision], reply 001 to get Google programming specification

O_o >_< O_o O_o ~_~ O_o

This article introduces the Go language installation methods, including Win10 and Linux.

Go is an open source programming language developed by Google and opened in November 2009. Because it supports concurrency natively from the bottom, Go has a native design advantage in multi-core concurrency. The Go language is developing rapidly, and its near-C performance, near-interpreted language development efficiency, and near-perfect compilation efficiency make it popular all over the world.

Here is a look at win10 and Linux under the install Go method.

1, Win10 install Go

Go to Go official website to download the package, send: golang.org/dl/

It’s very simple. Just download and install it.

After the installation, verify whether the installation is successful.

Open CMD and execute:

go version
Copy the code

If the preceding output is normal, the installation is successful on Windows 10.

2. Install Ubuntu Go

Install dependencies:

# ubuntu
sudo apt update
sudo apt install mercurial git gcc

# centos
sudo yum update
sudo yum install mercurial git gcc
Copy the code

Clone package:

Wget HTTP: / / https://go.googlecode.com/files/go1.17.4.linux-amd64.tar.gzCopy the code

This may require climbing a wall to download, or you can download the Linux package directly from the Go website:

Unzip the package:

The tar - ZXVF go1.17.4. Linux - amd64. Tar. GzCopy the code

Environment configuration:

vim ~/.bashrc

#join
export PATH=$PATH:<Go_path>/go/bin

#Wq save reasoning

#Make the environment work
source ~/.bashrc
Copy the code

Verify that Go is successfully installed:

go version
Copy the code

   

This installs successfully on Linux, and the whole process is very simple.

Win10 and Linux install the Go method, I hope I can share a little help to your learning.


[Experience sharing] Go installation tutorial