vscode go win10开发
参考学习链接
学习参考链接2
安装vscode 的插件
安装go
go下载
出现运行问题时,发现有些是因为网络原因无法下载
main.go:10:2: github.com/dgrijalva/jwt-go@v3.2.0+incompatible: Get "https://proxy.golang.org/github.com/dgrijalva/jwt-go/@v/v3.2.0+incompatible.zip": dial tcp 172.217.160.81:443: connectex:
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
main.go:11:2: github.com/gin-gonic/gin@v1.7.4: Get "https://proxy.golang.org/github.com/gin-gonic/gin/@v/v1.7.4.zip": dial tcp 172.217.160.81:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
在windows的命令行输入
go env -w GOPROXY=https://goproxy.cn
7 然后在命令行继续逐条输入如下指令:
go install golang.org/x/tools/gopls@latest
go install github.com/nsf/gocode@latest
go install golang.org/x/lint/golint@latest
go install github.com/lukehoban/go-find-references@latest
go install github.com/lukehoban/go-outline@latest
go install sourcegraph.com/sqs/goreturns@latest
go install golang.org/x/tools/cmd/gorename@latest
go install github.com/tpng/gopkgs@latest
go install github.com/newhook/go-symbols@latest