Golang 1.8.3 is a version of the Go language and a stable version. This version has certain improvements in performance, syntax, security, etc. Therefore, many people choose to use Golang 1.8.3 for development. In this article, we will briefly introduce how to install the source code of Golang 1.8.3. The following are the detailed steps:
tar -C /usr/local -xzf go1.8.3.linux-amd64.tar.gz
This command will install Golang to /usr/local/go directory.
vim ~/.bashrc
Add the following line at the end of the file:
export PATH= $PATH:/usr/local/go/bin
export GOPATH=$HOME/go
where GOPATH is the location where your Go project is stored.
source ~/.bashrc
Now, you You can enter the following command in the terminal to test whether the installation is successful:
go version
This command should output the installed Golang version.
sudo rm -rf /usr/local/go
In this article, we introduce the steps for Golang 1.8.3 source code installation. This is a relatively simple process that can be completed in just a few steps. After installing the Golang source code, you can start using Golang development on your system.
The above is the detailed content of golang 1.83 source code installation. For more information, please follow other related articles on the PHP Chinese website!