当使用go mod的时候,如果依赖需要升级版本,我们可以使用go list命令查看依赖的版本
例如:
go list -m -versions github.com/gin-gonic/gin
然后改一下go.mod中的版本号就可以升级了