Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoInspectorResult = errors.New("zerolint: inspector result missing")
ErrNoInspectorResult is returned when the ast inspector is missing.
Functions ¶
This section is empty.
Types ¶
type Options ¶ added in v0.0.8
type Options struct { Level level.LintLevel Excludes set.Set[string] Generated bool Regex *regexp.Regexp }
Options defines configurable parameters for the linter.
type Visitor ¶
type Visitor struct {
// contains filtered or unexported fields
}
Visitor is an AST visitor for analyzing the usage of pointers to zero-sized types. It identifies various patterns where such pointers might be used unnecessarily.
func (*Visitor) AllDetected ¶ added in v0.0.8
AllDetected returns a sorted iterator over all detected zero-sized types.
func (*Visitor) HasDetected ¶ added in v0.0.8
HasDetected tells whether any zero-sized types have been detected during analysis.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.