go出现missing go.sum entry for module providing package 错误

在项目目录下打开终端,执行go mod tidy解决,这个命令会删除不需要的依赖包、下载新的依赖包、更新go.sum