Canonical guidance

Use when

Avoid

Preferred pattern

//go:generate stringer -type=State
type State int

Anti-pattern

Explanation: This anti-pattern is tempting because it keeps the build “automatic” locally, but it fails unpredictably for everyone else.

Why

Related pages

Sources