Skip to content

ignoreCase: private structs with single interface #31

@cardil

Description

@cardil

Returning private structs, as this linter advises, is cumbersome to the caller. They are private for a reason, so a caller should be interested only in behavior (interface).

Linter should allow returning public interface instead of private type with single interface.

Also, worth adding that returning private structs is considered an error by revive linter.

Implementing this will likely resolve #21

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions