Go安装教程以及解决第三方插件无法安装的问题

必备:安装govendor: go get -u github.com/kardianos/govendor

首先:

     1.在%GOPATH%\src\ 目录下,建立golang.org 文件夹,并再新建x文件夹。例如:E:\Workplace_Go\src\golang.org\x\tools
     2.在终端打开golang.org/x文件夹,执行下面这条命令 git clone https://github.com/golang/tools.git
     3.go tool  安装的工具包     
        (转载可参考)http://www.cnblogs.com/zsy/archive/2016/02/28/5223957.html
        (转载可参考)https://blog.csdn.net/weixin_42162075/article/details/80877808

 

再次:此处为VS终端批量执行命令

go get -u -v github.com/nsf/gocode
go get -u -v github.com/rogpeppe/godef
go get -u -v github.com/golang/lint/golint
go get -u -v github.com/lukehoban/go-find-references
go get -u -v github.com/lukehoban/go-outline
go get -u -v github.com/tpng/gopkgs
go get -u -v github.com/newhook/go-symbols
go get -u github.com/kardianos/govendor
go get -u -v sourcegraph.com/sqs/goreturns
go get -u -v golang.org/x/tools/cmd/gorename

go install github.com/sqs/goreturns
go install golang.org/x/tools/cmd/gorename

、、、安装lint失败的插件、、、
git clone https://github.com/golang/lint.git
移动文件到E:\Workplace_Go\src\golang.org\x\lint
go install github.com/golang/lint/golint 


最后尝试这个(备用):
    go install github.com/josharian/impl     
    go install golang.org/x/tools/cmd/guru
    go install github.com/cweill/gotests/gotests


生成目录:通过终端 go tool 命令查看
      addr2line
       api
      asm
      buildid
      cgo
      compile
      cover
      dist
      doc
      fix
      go_bootstrap
      link
      nm
      objdump
      pack
      pprof
      test2json
      tour
      trace
      vet

你可能感兴趣的:(Go开发)