tools – honnef.co/go/tools Directories

tools/ directory

Directories

PathSynopsis
analysis
analysis/codePackage code answers structural and type questions about Go code.
analysis/editPackage edit contains helpers for creating suggested fixes.
analysis/facts
analysis/facts/deprecated
analysis/facts/directives
analysis/facts/generated
analysis/facts/nilness
analysis/facts/purity
analysis/facts/tokenfile
analysis/facts/typedness
analysis/lintPackage lint provides abstractions on top of go/analysis.
analysis/lint/testutil
analysis/report
cmd
cmd/keyifykeyify transforms unkeyed struct literals into a keyed ones.
cmd/staticcheckstaticcheck analyses Go code and makes it better.
cmd/structlayoutstructlayout displays the layout (field sizes and padding) of structs.
cmd/structlayout-optimizestructlayout-optimize reorders struct fields to minimize the amount of padding.
cmd/structlayout-prettystructlayout-pretty formats the output of structlayout with ASCII art.
cmd/unused
config
debugPackage debug contains helpers for debugging static analyses.
go
go/ast
go/ast/astutil
go/buildid
go/gcsizesPackage gcsizes provides a types.Sizes implementation that adheres to the rules used by the gc compiler.
go/irPackage ir defines a representation of the elements of Go programs (packages, types, functions, variables and constants) using a static single-information (SSI) form intermediate representation (IR) for the bodies of functions.
go/ir/irutil
go/loader
go/types
go/types/typeutil
internal
knowledgePackage knowledge contains manually collected information about Go APIs.
lintcmdPackage lintcmd implements the frontend of an analysis runner.
lintcmd/cachePackage cache implements a build artifact cache.
lintcmd/runnerPackage runner implements a go/analysis runner.
lintcmd/version
patternPackage pattern implements a simple language for pattern matching Go ASTs.
printfPackage printf implements a parser for fmt.Printf-style format strings.
quickfixPackage quickfix contains analyzes that implement code refactorings.
sarif
simplePackage simple contains analyzes that simplify code.
staticcheckPackage staticcheck contains analyzes that find bugs and performance issues.
staticcheck/fakejson
staticcheck/fakereflect
staticcheck/fakexml
structlayout
stylecheckPackage stylecheck contains analyzes that enforce style rules.
unusedPackage unused contains code for finding unused code.
Version
v0.4.3
Published
Mar 15, 2023
Platform
js/wasm
Last checked
3 minutes ago

Tools for package owners.