Registry / utility / goversion

goversion

JSON →
library1.2.0gogounverified

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

go get rsc.io/goversion
INSTALL
IMPORT
SIG · GOVERSION
G
goversion
utilitygov1.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

goversion
rsc.io/goversion

Get Go version of a binary

package main import ( "fmt" "rsc.io/goversion" ) func main() { v, _ := goversion.Scan("/usr/local/go/bin/go") fmt.Println(v) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
goversion — go get goversion · libregistry