Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAnalyzer ¶ added in v0.2.0
NewAnalyzer returns a new analyzer to check for receiver type consistency.
Types ¶
type Settings ¶ added in v0.2.0
type Settings struct {
// DisableBuiltin if true, disables the built-in method excludes.
// Built-in excluded methods:
// - "MarshalText"
// - "MarshalJSON"
// - "MarshalYAML"
// - "MarshalXML"
// - "MarshalBinary"
// - "GobEncode"
DisableBuiltin bool
// Exclusions format is `struct_name.method_name` (ex: `Foo.MethodName`).
// A wildcard `*` can use as a struct name (ex: `*.MethodName`).
Exclusions []string
}
Settings is the configuration for the analyzer.
Click to show internal directories.
Click to hide internal directories.