使用go开发wails项目时 需要安装go install github.com/wailsapp/wails/v2/cmd/wails@latest
会报错:
C:\Users\Administrator>go install github.com/wailsapp/wails/v2/cmd/wails@latest
go: github.com/wailsapp/wails/v2/cmd/wails@latest: module
github.com/wailsapp/wails/v2/cmd/wails: Get
"https://proxy.golang.org/github.com/wailsapp/wails/v2/cmd/wails/@v/list": dial tcp
172.217.163.49: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 hosthas failed to respond.
这时如果连接不到proxy.golang.org 的话可以切换国内源
执行:go env -w GOPROXY=https://goproxy.cn
这时就可以轻松下载了