Canonical guidance

Use when

Avoid

Preferred pattern

var defaultTimeout = 5 * time.Second

Anti-pattern

Explanation: This is tempting because it removes explicit setup calls, but it also hides control flow inside startup order.

Why

Related pages

Sources