How to install and config the Go on Ubuntu/Linux

版权声明: https://blog.csdn.net/u011263794/article/details/81273536

1. Download go1.10.3.linux-amd64.tar.gz from https://golang.org/dl/

2. unzip the file go1.10.3.linux-amd64.tar.gz

3. Set the GOROOT and PATH
export GOROOT=/home/gary/go
export PATH=$PATH:$GOROOT/bin

4. Enable our sets
source /etc/profile
 

猜你喜欢

转载自blog.csdn.net/u011263794/article/details/81273536