Documentation ¶
Overview ¶
Package analyzer is a linter that reports ignored constructors. It shows you places where someone is doing T{} or &T{} instead of using NewT declared in the same package as T. A constructor for type T (only structs are supported at the moment) is a function with name "NewT" that returns a value of type T or *T. Types returned by constructors are not checked right now, only that type T inferred from the function name exists in the same package. Standard library packages are excluded from analysis.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ConstructorFact ¶
func (*ConstructorFact) AFact ¶
func (f *ConstructorFact) AFact()
Click to show internal directories.
Click to hide internal directories.