可以看到go mod tidy命令的作用: 添加需要用到但go.mod中查不到的模块, 删除未使用的模块 https://blog.csdn.net/weixin_43881017/article/details/117359986