tools – honnef.co/go/tools Directories

tools/ directory

Directories

PathSynopsis
analysis
analysis/callcheckPackage callcheck provides a framework for validating arguments in function calls.
analysis/codePackage code answers structural and type questions about Go code.
analysis/dfaPackage dfa provides types and functions for implementing data-flow analyses.
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/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
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.
quickfix/qf1001
quickfix/qf1002
quickfix/qf1003
quickfix/qf1004
quickfix/qf1005
quickfix/qf1006
quickfix/qf1007
quickfix/qf1008
quickfix/qf1009
quickfix/qf1010
quickfix/qf1011
quickfix/qf1012
sarif
simplePackage simple contains analyzes that simplify code.
simple/s1000
simple/s1001
simple/s1002
simple/s1003
simple/s1004
simple/s1005
simple/s1006
simple/s1007
simple/s1008
simple/s1009
simple/s1010
simple/s1011
simple/s1012
simple/s1016
simple/s1017
simple/s1018
simple/s1019
simple/s1020
simple/s1021
simple/s1023
simple/s1024
simple/s1025
simple/s1028
simple/s1029
simple/s1030
simple/s1031
simple/s1032
simple/s1033
simple/s1034
simple/s1035
simple/s1036
simple/s1037
simple/s1038
simple/s1039
simple/s1040
staticcheckPackage staticcheck contains analyzes that find bugs and performance issues.
staticcheck/fakejson
staticcheck/fakereflect
staticcheck/fakexml
staticcheck/sa1000
staticcheck/sa1001
staticcheck/sa1002
staticcheck/sa1003
staticcheck/sa1004
staticcheck/sa1005
staticcheck/sa1006
staticcheck/sa1007
staticcheck/sa1008
staticcheck/sa1010
staticcheck/sa1011
staticcheck/sa1012
staticcheck/sa1013
staticcheck/sa1014
staticcheck/sa1015
staticcheck/sa1016
staticcheck/sa1017
staticcheck/sa1018
staticcheck/sa1019
staticcheck/sa1020
staticcheck/sa1021
staticcheck/sa1023
staticcheck/sa1024
staticcheck/sa1025
staticcheck/sa1026
staticcheck/sa1027
staticcheck/sa1028
staticcheck/sa1029
staticcheck/sa1030
staticcheck/sa1031
staticcheck/sa1032
staticcheck/sa2000
staticcheck/sa2001
staticcheck/sa2002
staticcheck/sa2003
staticcheck/sa3000
staticcheck/sa3001
staticcheck/sa4000
staticcheck/sa4001
staticcheck/sa4003
staticcheck/sa4004
staticcheck/sa4005
staticcheck/sa4006
staticcheck/sa4008
staticcheck/sa4009
staticcheck/sa4010
staticcheck/sa4011
staticcheck/sa4012
staticcheck/sa4013
staticcheck/sa4014
staticcheck/sa4015
staticcheck/sa4016
staticcheck/sa4017
staticcheck/sa4018
staticcheck/sa4019
staticcheck/sa4020
staticcheck/sa4021
staticcheck/sa4022
staticcheck/sa4023
staticcheck/sa4024
staticcheck/sa4025
staticcheck/sa4026
staticcheck/sa4027
staticcheck/sa4028
staticcheck/sa4029
staticcheck/sa4030
staticcheck/sa4031
staticcheck/sa4032
staticcheck/sa5000
staticcheck/sa5001
staticcheck/sa5002
staticcheck/sa5003
staticcheck/sa5004
staticcheck/sa5005
staticcheck/sa5007
staticcheck/sa5008
staticcheck/sa5009
staticcheck/sa5010
staticcheck/sa5011
staticcheck/sa5012
staticcheck/sa6000
staticcheck/sa6001
staticcheck/sa6002
staticcheck/sa6003
staticcheck/sa6005
staticcheck/sa6006
staticcheck/sa9001
staticcheck/sa9002
staticcheck/sa9003
staticcheck/sa9004
staticcheck/sa9005
staticcheck/sa9006
staticcheck/sa9007
staticcheck/sa9008
staticcheck/sa9009
structlayout
stylecheckPackage stylecheck contains analyzes that enforce style rules.
stylecheck/st1000
stylecheck/st1001
stylecheck/st1003
stylecheck/st1005
stylecheck/st1006
stylecheck/st1008
stylecheck/st1011
stylecheck/st1012
stylecheck/st1013
stylecheck/st1015
stylecheck/st1016
stylecheck/st1017
stylecheck/st1018
stylecheck/st1019
stylecheck/st1020
stylecheck/st1021
stylecheck/st1022
stylecheck/st1023
unusedPackage unused contains code for finding unused code.
Version
v0.5.0-rc.1
Published
Jul 1, 2024
Platform
js/wasm
Last checked
6 minutes ago

Tools for package owners.