cd $GOPATH/src/golang.org/x/ git clone https://github.com/golang/tools.git cd $GOPATH/src/github.com/ git clone https://github.com/golang/lint.git go install github.com/golang/lint/golint //然后重启vscode,发现安装成功!
上面有部分指令没用,执行了就go get安装gocode就成功了
go get -u -v github.com/nsf/gocode