Skip to content

jamessanford/gover

Repository files navigation

gover - Go Version Inspector

gover shows package version and Go build metadata from binaries or running processes. Think of it as a cross between go version -m and gops.

With no arguments, gover scans /proc for PIDs to identify Go-based processes.

This tool was written by agentic AI tools.

Install

go install github.com/jamessanford/gover@latest

Example output

# Scan running processes

% sudo gover
PID    Go Version  Exe                     Go Package                                                                                      Env
11337  go1.26.2    remote-tsdb-clickhouse  github.com/jamessanford/remote-tsdb-clickhouse@v0.1.0                                           GOMAXPROCS=4
14600  go1.24.5    blackbox_exporter       github.com/prometheus/blackbox_exporter@v0.27.1-0.20250712065533-b4c6d9dd1d4a                   GOMAXPROCS=4
37068  go1.26.0    prometheus              github.com/prometheus/prometheus/cmd/prometheus@v0.0.0-20260225185413-54e010926b0a+dirty
# Inspect one or more binaries
gover /usr/bin/grafana $HOME/go/bin/revive
# Inspect one or more PIDs
gover --pid 1234 5678
# JSON output
gover --json /usr/bin/grafana
{
  "exe": "/usr/bin/grafana",
  "path": "github.com/grafana/grafana/pkg/cmd/grafana",
  "version": "devel",
  "go_version": "go1.26.1-X:nodwarf5",
  "exe_mtime": 1774523528,
  "package": "github.com/grafana/grafana/pkg/cmd/grafana@latest"
}
# Package output
% gover --package /usr/bin/tailscale
tailscale.com/cmd/tailscale@v1.96.4+dirty

Help output

Inspect Go version info from binaries or running processes

Usage:
  gover [flags] [pid|binary...]

Flags:
  -p, --pid         Inspect PIDs rather than binaries
  -j, --json        Output JSON
  -s, --sort        Sort output by Go version
      --package     Output only the package path@version
      --no-header   Suppress table headers
      --debug       Log process scans to stderr
      --verbose     Include build settings in JSON
                    Include binary name with --package
  -h, --help        help for gover

Similar tools

About

Inspect Go version info from binaries or running processes

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors