Skip to content

constructor-interface-return

Default severity: warning

Reports only exported New-style constructors whose returns consistently reveal one local concrete implementation of a non-empty local interface. Polymorphic, standard-library, empty, and error interfaces are skipped.

func NewStore() Store {
return &memoryStore{}
}
func NewStore() *memoryStore {
return &memoryStore{}
}