Canonical guidance

Use when

Avoid

Preferred pattern

type Reader interface {
	Read([]byte) (int, error)
}

Anti-pattern

Explanation: This is tempting because broad names feel flexible, but vague interfaces weaken both design and call-site understanding.

Why

Related pages

Sources