出现的错误如下:
D:\gocode\src\gin_demo>go mod tidy
go: finding module for package github.com/davecgh/go-spew/spew
gin_demo/lession01 imports
github.com/gin-gonic/gin tested by
github.com/gin-gonic/gin.test imports
github.com/stretchr/testify/assert imports
github.com/davecgh/go-spew/spew: module github.com/davecgh/go-spew@latest found (v1.1.1), but does not contain pac
kage github.com/davecgh/go-spew/spew
意识是在最新版本的go-spew 模块中没有spew的这个包
所以可以到github中查看该项目的其余版本 然后在go.mod中使用replace语句将其进行替换