Canonical guidance

Use when

Avoid

Preferred pattern

package httpapi
client := httpapi.NewClient()

Anti-pattern

package commonutils
client := commonutils.NewHTTPAPIClient()

Explanation: This anti-pattern is common because generic names feel reusable, but they make call sites vague and encourage dumping unrelated behavior together.

Why

Sources