https://github.com/jamessanford/gover
Inspect Go version info from binaries or running processes
https://github.com/jamessanford/gover
ai-generated
Last synced: 29 days ago
JSON representation
Inspect Go version info from binaries or running processes
- Host: GitHub
- URL: https://github.com/jamessanford/gover
- Owner: jamessanford
- License: apache-2.0
- Created: 2026-04-24T23:51:43.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2026-04-25T00:45:05.000Z (4 months ago)
- Last Synced: 2026-06-27T23:07:13.357Z (about 1 month ago)
- Topics: ai-generated
- Language: Go
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Agents: AGENTS.md
Awesome Lists containing this project
README
# 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
```bash
go install github.com/jamessanford/gover@latest
```
## Example output
```bash
# 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
```
```bash
# Inspect one or more binaries
gover /usr/bin/grafana $HOME/go/bin/revive
```
```bash
# Inspect one or more PIDs
gover --pid 1234 5678
```
```bash
# 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"
}
```
```bash
# Package output
% gover --package /usr/bin/tailscale
tailscale.com/cmd/tailscale@v1.96.4+dirty
```
## Help output
```bash
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
- [gops](https://github.com/google/gops)
- [go version -m](https://pkg.go.dev/cmd/go#hdr-Print_Go_version)
- [gup](https://github.com/nao1215/gup)