https://studygolang.com/dl
[xxx@centos ~]$ wget https://studygolang.com/dl/golang/go1.12.5.linux-amd64.tar.gz [xxx@centos ~]$ sudo tar -xzvf Download/go1.12.5.linux-amd64.tar.gz -C /usr/local
[xxx@centos ~]$ sudo gedit ./.bashrc export GOROOT=/usr/local/go export GOPATH=/home/xxx/go export PATH=$PATH:$GOROOT/bin:$GOPATH/bin [xxx@centos ~]$ source .bashrc
[xxx@centos ~]$ sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc [xxx@centos ~]$ sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo' [xxx@centos ~]$ sudo yum check-update [xxx@centos ~]$ sudo yum install code
[xxx@centos src]$ git clone https://github.com/golang/tools.git 解压到 /home/xxx/go/src/golang.org/x/tools [xxx@centos src]$ git clone https://github.com/golang/lint.git 解压到 /home/xxx/go/src/golang.org/x/lint
[xxx@centos src]$ go build -o ../bin/gocode github.com/mdempsky/gocode/ [xxx@centos src]$ go build -o ../bin/go-outline github.com/ramya-rao-a/go-outline/ [xxx@centos src]$ go build -o ../bin/go-symbols github.com/acroca/go-symbols/ [xxx@centos src]$ go build -o ../bin/guru golang.org/x/tools/cmd/guru/ [xxx@centos src]$ go build -o ../bin/gorename golang.org/x/tools/cmd/gorename/ [xxx@centos src]$ go build -o ../bin/golint golang.org/x/lint/golint/ [xxx@centos src]$ go build -o ../bin/gocode-gomod github.com/stamblerre/gocode/ [xxx@centos src]$ go build -o ../bin/goreturns github.com/sqs/goreturns/
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。