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