说明: parser 模块 第一天:环境搭建 GO 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 https://www.digitalocean.com/community/tutorials/how-to-install-go-1-7-on-centos-7 Step 1 – Downloading Go wget https://studygolang.com/dl/golang/go1.19.1.linux-amd64.tar.gz Step 2 – Setting Paths for Go export GOROOT=/root/local/go export PATH=$PATH:$GOROOT/bin export GOPATH=/root/src Step 3 – Downloading lib go env -w GO111MODULE=on go env -w GOPROXY=https://goproxy.cn,direct go get -v golang.org/x/tools/cmd/goimports pingcap/parser 1