Canonical guidance

Use when

Avoid

Preferred pattern

m := make(map[string]int)

Anti-pattern

Explanation: This is tempting because both forms allocate something, but they produce different kinds of results with different readiness semantics.

Why

Related pages

Sources