Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我没有使用 go 模块。在我公司的工具链中有一堆包(即我没有安装这些包,因此无法检查我的 bash 历史记录中的包版本)。所以包存在于$TOOLCHAIN_PATH/go/src. 有什么方法可以找到特定软件包的版本。 如果有帮助,我想找出crypto/tls.
$TOOLCHAIN_PATH/go/src
crypto/tls
我没有使用 go 模块
所以你做错了。现在是 2021 年,您必须使用模块。使用模块。
我想知道crypto/tls的包版本
这是您的编译器附带的 stdlib 包,它作为包“未版本化” 。运行go version以查看整个编译器/stdlib 组合的版本。
go version