运行案例代码提示下面的错误,求老师解答。
来源:4-3 开发一个浏览器代理1

星辰大帝雅
2020-05-18
GOROOT=C:\Go #gosetup GOPATH=C:\Users\00\go #gosetup C:\Go\bin\go.exe build -o C:\Users\00\AppData\Local\Temp__go_build_main_go__1.exe D:/go/work/gateway_demo/main.go #gosetup go: git.apache.org/thrift.git@v0.13.0: Get “https://proxy.golang.org/git.apache.org/thrift.git/@v/v0.13.0.mod”: dial tcp 172.217.24.17: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. Compilation finished with exit code 1
写回答
1回答
-
牛儿吃草
2020-05-19
win环境先执行一下
go env -w GOPROXY=https://goproxy.io,direct
go env -w GO111MODULE=on
go mod tidy022020-05-19
相似问题