golang 查看指定版本库所依赖库的版本

查看依赖库所有版本

bash 复制代码
go list -m -versions github.com/spf13/cast

手动检查依赖树

bash 复制代码
 go mod why github.com/spf13/viper

查看指定版本库所依赖库的版本

bash 复制代码
curl -s https://goproxy.cn/github.com/spf13/viper/@v/v1.18.0.mod | grep spf13/cast

查看所有依赖库

bash 复制代码
curl -s https://goproxy.cn/github.com/spf13/viper/@v/v1.18.0.mod

go.mod替换依赖库

bash 复制代码
go mod edit -replace github.com/spf13/viper=v1.16.0
相关推荐
涡能增压发动积1 天前
同样的代码循环 10次正常 循环 100次就抛异常?自定义 Comparator 的 bug 让我丢尽颜面
后端
Wenweno0o1 天前
0基础Go语言Eino框架智能体实战-chatModel
开发语言·后端·golang
swg3213211 天前
Spring Boot 3.X Oauth2 认证服务与资源服务
java·spring boot·后端
tyung1 天前
一个 main.go 搞定协作白板:你画一笔,全世界都看见
后端·go
gelald1 天前
SpringBoot - 自动配置原理
java·spring boot·后端
chenjingming6661 天前
jmeter线程组设置以及串行和并行设置
java·开发语言·jmeter
cch89181 天前
Python主流框架全解析
开发语言·python
不爱吃炸鸡柳1 天前
C++ STL list 超详细解析:从接口使用到模拟实现
开发语言·c++·list
十五年专注C++开发1 天前
RTTR: 一款MIT 协议开源的 C++ 运行时反射库
开发语言·c++·反射
Momentary_SixthSense1 天前
设计模式之工厂模式
java·开发语言·设计模式