当使用go mod的时候,如果依赖需要升级版本,我们可以使用go list命令查看依赖的版本

例如:

go list -m -versions github.com/gin-gonic/gin

[Golang] go list命令查看依赖的版本

 

 

然后改一下go.mod中的版本号就可以升级了

 

相关文章:

  • 2021-10-06
  • 2021-12-22
  • 2021-11-23
  • 2021-11-23
  • 2021-12-03
  • 2021-10-19
  • 2022-02-09
猜你喜欢
  • 2021-08-31
  • 2021-08-03
  • 2021-10-31
  • 2022-12-23
  • 2021-09-06
  • 2021-10-11
相关资源
相似解决方案