tools – honnef.co/go/tools Directories

tools/ directory

Directories

PathSynopsis
analysis
analysis/codePackage code answers structural and type questions about Go code.
analysis/edit
analysis/facts
analysis/facts/nilness
analysis/facts/typedness
analysis/lintPackage lint provides abstractions on top of go/analysis.
analysis/report
cmd
cmd/keyifykeyify transforms unkeyed struct literals into a keyed ones.
cmd/rdepsrdeps scans GOPATH for all reverse dependencies of a set of Go packages.
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.
config
debug
go
go/ast
go/ast/astutil
go/callgraphPackage callgraph defines the call graph and various algorithms and utilities to operate on it.
go/callgraph/chaPackage cha computes the call graph of a Go program using the Class Hierarchy Analysis (CHA) algorithm.
go/callgraph/rtaThis package provides Rapid Type Analysis (RTA) for Go, a fast algorithm for call graph construction and discovery of reachable code (and hence dead code) and runtime types.
go/callgraph/staticPackage static computes the call graph of a Go program containing only static call edges.
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
knowledge
lint
lintcmd
lintcmd/runnerPackage runner implements a go/analysis runner.
lintcmd/version
lint/testutil
patternPackage pattern implements a simple language for pattern matching Go ASTs.
printfPackage printf implements a parser for fmt.Printf-style format strings.
simplePackage simple contains a linter for Go source code.
staticcheckPackage staticcheck contains a linter for Go source code.
structlayout
stylecheck
unused
unused/typemapPackage typemap defines Map, a mapping from types.Type to interface{} values.
Version
v0.1.3
Published
Mar 9, 2021
Platform
darwin/amd64
Last checked
now

Tools for package owners.