Canonical guidance

Use when

Avoid

Preferred pattern

var DefaultClient = &Client{}

Anti-pattern

Explanation: This is tempting because it removes wiring, but it also removes isolation and makes behavior harder to reason about.

Why

Related pages

Sources