Directories
¶
Path | Synopsis |
---|---|
Package deprecated defines an Analyzer that marks deprecated symbols and package imports.
|
Package deprecated defines an Analyzer that marks deprecated symbols and package imports. |
Package embeddirective defines an Analyzer that validates //go:embed directives.
|
Package embeddirective defines an Analyzer that validates //go:embed directives. |
Package fillreturns defines an Analyzer that will attempt to automatically fill in a return statement that has missing values with zero value elements.
|
Package fillreturns defines an Analyzer that will attempt to automatically fill in a return statement that has missing values with zero value elements. |
Package fillstruct defines an Analyzer that automatically fills in a struct declaration with zero value elements for each field.
|
Package fillstruct defines an Analyzer that automatically fills in a struct declaration with zero value elements for each field. |
Package fillswitch identifies switches with missing cases.
|
Package fillswitch identifies switches with missing cases. |
Package gofix defines an Analyzer that inlines calls to functions marked with a "//go:fix inline" doc comment, and forwards uses of constants marked with a "//go:fix forward" doc comment.
|
Package gofix defines an Analyzer that inlines calls to functions marked with a "//go:fix inline" doc comment, and forwards uses of constants marked with a "//go:fix forward" doc comment. |
Package hostport defines an analyzer for calls to net.Dial with addresses of the form "%s:%d" or "%s:%s", which work only with IPv4.
|
Package hostport defines an analyzer for calls to net.Dial with addresses of the form "%s:%d" or "%s:%s", which work only with IPv4. |
Package modernize providers the modernizer analyzer.
|
Package modernize providers the modernizer analyzer. |
cmd/modernize
The modernize command suggests (or, with -fix, applies) fixes that clarify Go code by using more modern features.
|
The modernize command suggests (or, with -fix, applies) fixes that clarify Go code by using more modern features. |
Package nonewvars defines an Analyzer that applies suggested fixes to errors of the type "no new variables on left side of :=".
|
Package nonewvars defines an Analyzer that applies suggested fixes to errors of the type "no new variables on left side of :=". |
Package noresultvalues defines an Analyzer that applies suggested fixes to errors of the type "no result values expected".
|
Package noresultvalues defines an Analyzer that applies suggested fixes to errors of the type "no result values expected". |
Package simplifycompositelit defines an Analyzer that simplifies composite literals.
|
Package simplifycompositelit defines an Analyzer that simplifies composite literals. |
Package simplifyrange defines an Analyzer that simplifies range statements.
|
Package simplifyrange defines an Analyzer that simplifies range statements. |
Package simplifyslice defines an Analyzer that simplifies slice statements.
|
Package simplifyslice defines an Analyzer that simplifies slice statements. |
Package unusedfunc defines an analyzer that checks for unused functions and methods
|
Package unusedfunc defines an analyzer that checks for unused functions and methods |
Package unusedparams defines an analyzer that checks for unused parameters of functions.
|
Package unusedparams defines an analyzer that checks for unused parameters of functions. |
cmd
The unusedparams command runs the unusedparams analyzer.
|
The unusedparams command runs the unusedparams analyzer. |
Package unusedvariable defines an analyzer that checks for unused variables.
|
Package unusedvariable defines an analyzer that checks for unused variables. |
Package yield defines an Analyzer that checks for mistakes related to the yield function used in iterators.
|
Package yield defines an Analyzer that checks for mistakes related to the yield function used in iterators. |
Click to show internal directories.
Click to hide internal directories.