goversion

Print version used to build Go executables

  • 所有者: rsc/goversion
  • 平台:
  • 许可证: BSD 3-Clause "New" or "Revised" License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

rsc.io/goversion

Goversion scans a directory tree and, for every executable it finds, prints
the Go version used to build that executable.

Usage:

goversion [-crypto] [-m, -mh] [-v] path...

The list of paths can be individual files or directories; if the latter,
goversion scans all files in the directory tree, not following symlinks.

Goversion scans inside of tar or gzipped tar archives that it finds (named
*.tar, *.tar.gz, or *.tgz), but not recursively.

The -crypto flag causes goversion to print additional information about the
crypto libraries linked into each executable.

The -m flag causes goversion to print the list of modules
found in the executable, along with version information.

The -mh flag causes goversion to print the list of modules
found in the executable, along with version and hash information.

The -v flag causes goversion to print information about every file it
considers.

Example

Scan /usr/bin for Go binaries and print their versions:

$ goversion /usr/bin
/usr/bin/containerd go1.7.4
/usr/bin/containerd-shim go1.7.4
/usr/bin/ctr go1.7.4
/usr/bin/docker go1.7.4
/usr/bin/docker-proxy go1.7.4
/usr/bin/dockerd go1.7.4
/usr/bin/kbfsfuse go1.8.3
/usr/bin/kbnm go1.8.3
/usr/bin/keybase go1.8.3
/usr/bin/snap go1.7.4
/usr/bin/snapctl go1.7.4

主要指标

概览
名称与所有者rsc/goversion
主编程语言Go
编程语言Go (语言数: 1)
平台
许可证BSD 3-Clause "New" or "Revised" License
所有者活动
创建于2017-08-23 21:14:04
推送于2024-07-01 15:00:58
最后一次提交2023-03-09 10:32:36
发布数3
最新版本名称v1.2.0 (发布于 )
第一版名称v1.0.0 (发布于 )
用户参与
星数273
关注者数6
派生数23
提交数14
已启用问题?
问题数16
打开的问题数11
拉请求数0
打开的拉请求数5
关闭的拉请求数6
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?