Documentation
¶
Overview ¶
Package iface provides analyzers that designed to identify the incorrect use of interfaces, helping developers avoid interface pollution.
Directories
¶
Path | Synopsis |
---|---|
cmd
|
|
ifacecheck
command
|
|
Package identical defines an Analyzer that identifies interfaces within the same package that have identical methods or constraints.
|
Package identical defines an Analyzer that identifies interfaces within the same package that have identical methods or constraints. |
cmd/identicaliface
command
|
|
internal
|
|
Package opaque defines an Analyzer that detects functions that return an interface type, but only ever return a single concrete implementation.
|
Package opaque defines an Analyzer that detects functions that return an interface type, but only ever return a single concrete implementation. |
cmd/opaqueiface
command
|
|
Package unexported defines an Analyzer that detects interfaces which are not exported but are used as parameters or return values in exported functions or methods.
|
Package unexported defines an Analyzer that detects interfaces which are not exported but are used as parameters or return values in exported functions or methods. |
cmd/unexportediface
command
|
|
Package unused defines an Analyzer that detects interfaces which are not used anywhere in the same package where they are defined.
|
Package unused defines an Analyzer that detects interfaces which are not used anywhere in the same package where they are defined. |
cmd/unusediface
command
|
Click to show internal directories.
Click to hide internal directories.