Skip to content

don't group exported and unexported methods of an interface together #168

@ainar-g

Description

@ainar-g

Version: v0.2.0.

Before:

type I interface {
	A()
	B()

	c()
}

After:

type I interface {
	A()
	B()
	c()
}

Perhaps c shouldn't be grouped together with A and B, since it is unexported?

In the real code that inspired this issue, the c is a “marker method” for members of the “sum type” I, while A and B are methods that return data common to the members of the “sum type”.

(I have filed this in the unused repo at first. Apologies for the noise once again.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions