Registry / utility / x-tools

x-tools

JSON →
library0.46.0gogounverified

Package tools provides various Go tools and utilities, including goimports, gopls, and static analysis.

go get golang.org/x/tools
INSTALL
IMPORT
SIG · X-TOOLS
X
x-tools
utilitygov0.46.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.

analysis
✓ golang.org/x/tools/go/analysis

Use the analysis framework to define a static analysis pass.

package main import ( "fmt" "golang.org/x/tools/go/analysis" ) func main() { fmt.Println(analysis.Analyzer{Name: "example"}) }
Debug
Known issues
gotchaThe x/tools module is a collection of many subpackages; importing the root module may pull in many dependencies.
fix
Import only the specific subpackage you need (e.g., golang.org/x/tools/go/analysis).
affects: >=0.1.0
Upgrade
Version history
0.46.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
x-tools — go get x-tools · libregistry