Canonical guidance

Use when

Avoid

Preferred pattern

func (u User) Name() string { return u.name }

Anti-pattern

Explanation: This is tempting because accessor conventions transfer from other ecosystems, but in Go the extra verb usually adds noise, not clarity.

Why

Related pages

Sources