cd /home
mkdir app
cd app
wget https://studygolang.com/dl/golang/go1.10.1.linux-amd64.tar.gz
wget https://dl.google.com/go/go1.14.2.linux-amd64.tar.gz
tar -xvf go1.10.1.linux-amd64.tar.gz
mkdir /home/work
vim /etc/profile

export GOROOT=/home/app/go
export GOPATH=/home/work
export PATH=$PATH:$GOROOT/bin
source /etc/profile
go version
go env
cd /home/work
vi hello.go
package main
import "fmt"
func main() {
    fmt.Println("Hello, 世界")
}
go run hello.go