原始go.mod文件

module xxx

go 1.14

报错 i/o timeout

go mod init workorder
go mod init: go.mod already exists go mod tidy
go: finding module for package github.com/greyh4t/zhttp
go: finding module for package github.com/tidwall/gjson
go: finding module for package github.com/deckarep/golang-set
workorder imports
github.com/deckarep/golang-set: module github.com/deckarep/golang-set: Get "https://proxy.golang.org/github.com/deckarep/golang-set/@v/list": dial tcp 34.64.4.81:443: i/o timeout
workorder imports
github.com/greyh4t/zhttp: module github.com/greyh4t/zhttp: Get "https://proxy.golang.org/github.com/greyh4t/zhttp/@v/list": dial tcp 34.64.4.81:443: i/o timeout
workorder imports
github.com/tidwall/gjson: module github.com/tidwall/gjson: Get "https://proxy.golang.org/github.com/tidwall/gjson/@v/list": dial tcp 34.64.4.81:443: i/o timeout

加代理

➜  ~ vim ./.zshrc

export GO111MODULE=on
export GOPROXY=https://goproxy.io ➜ ~ . ./.zshrc

然后在运行一次:go mod tidy

加载后的go.mod文件

module xxx

go 1.14

require (
github.com/deckarep/golang-set v1.7.1
github.com/greyh4t/zhttp v0.0.0-20200602035456-2186ce915b30
github.com/stretchr/testify v1.6.1 // indirect
github.com/tidwall/gjson v1.6.0
)

参考

https://blog.csdn.net/dgatiger/article/details/105205190

https://blog.csdn.net/zzhongcy/article/details/97243826

最新文章

  1. JAVA Day10
  2. SpringMVC常用配置-Controller返回格式化数据如JSON、XML的配置方式和机制
  3. splay poj3481
  4. 9.25 DOM作业
  5. Nginx模块之————RTMP模块在Ubuntu上以串流直播HLS视频
  6. Facebook 内部高效工作PPT
  7. python【第八篇】socket网络编程
  8. 去培训机构参加IT培训值不值
  9. 删除表中的所有记录 ID从1开始
  10. Cannot start service MSSQL$MICROSOFT##WID on computer
  11. WebApi系列~不支持put和delete请求的解决方法
  12. Eclipse创建SpringMVC,Spring, Hibernate项目
  13. 论文阅读笔记二十二:End-to-End Instance Segmentation with Recurrent Attention(CVPR2017)
  14. WannaCry勒索软件还在继续传播和感染中
  15. DevExpress v18.1新版亮点——Data Access篇
  16. vue-cli 3.0之跨域请求代理配置及axios路径配置
  17. document文档对象
  18. OpenStack安装部署(二)
  19. WordPress主题开发:主题初始化
  20. sql主表分页查询关联子表取任意一条高效方案

热门文章

  1. leetcode常见问题
  2. 数据可视化 -- Python
  3. leetcode8 字符串转换整数
  4. python 表达式
  5. (转载)RTMP协议中的AMF数据 http://blog.csdn.net/yeyumin89/article/details/7932585
  6. P4213 【模板】杜教筛(杜教筛)题解
  7. FZU 2129 子序列个数(DP)题解
  8. docker-swarm----多机容器管理
  9. windows信息收集
  10. LVS之DR模式部署