Skip to content

Unexported interface methods are internal #50

@MichaelUrman

Description

@MichaelUrman

When an interface method is not exported, its implementation can be assumed to wrap errors. This can be implemented by requiring sel.Sel.IsExported() before checking for isInterface(pass, sel).

Then e.g., the test interface_on_struct can be extended to define a decode(v interface{}) error and call it without issuing an error.

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