go-tools holds the golang.org/x/tools module, comprising various tools
mostly for static analysis of Go programs, some of which are listed
below. Selected commands:
goimports formats a Go program like go fmt and additionally inserts
import statements for any packages required by the file after it
is edited.
callgraph prints the call graph of a Go program.
digraph is a utility for manipulating directed graphs in textual
notation.
stringer generates declarations (including a String method) for "enum"
types.
toolstash is a utility to simplify working with multiple versions of the
Go toolchain.
===> The following configuration options are available for go-tools-0.52.0_1,1:
RARE=off: install rarely used tools
===> Use 'make config' to modify these settings
devel/go-tools: update to 0.52.0
Selected upstream changes:
- cmd/compilebench: exit nonzero when a benchmark fails
- x/tools: delete obsolete code and dead test
- cmd/toolstash: check -linkobj files to support early export
- go.mod: update golang.org/x dependencies
Changelog: https://github.com/golang/tools/compare/v0.50.0...v0.52.0
MFH: 2026Q4
(cherry picked from commit 04b7864de90ca2b42d27592b0bc894cbbff372b7)