Show module/build info embedded in a binary.

Section: Inspection and Binary Introspection

Inspect build info

bash
bash
go version -m ./dist/app
Explanation

Show module/build info embedded in a binary. Useful in Go CLI workflows.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Inspection and Binary Introspection
List binary symbols
Inspect symbols in a compiled binary.
OpenIn sheetbashsame section
Disassemble binary
Disassemble functions from a compiled binary.
OpenIn sheetbashsame section
List target platforms
Print supported GOOS/GOARCH pairs.
OpenIn sheetbash1 tag match
Trim source paths
Remove local filesystem paths from compiled output.
OpenIn sheetbash1 tag match
Test then build
A typical release pipeline pattern.
OpenIn sheetbash1 tag match
Build Linux amd64
Cross-compile for Linux amd64.
OpenIn sheetbash1 tag match