运行案例代码提示下面的错误,求老师解答。

来源: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 tidy

0
2
牛儿吃草
回复
星辰大帝雅
依赖类包没有安装好
2020-05-19
共2条回复

(打造简历金牌项目)Vue+Go 开发企业级微服务网关项目

简历中摒弃烂大街的培训机构项目,带你开发企业级微服务网关

1316 学习 · 352 问题

查看课程