« * K @konradreiche.com

Konrad Reiche @konradreiche.com

2026-11-03 18:02 UTC

There's little in the Go documentation I disagree with, but this recommendation is too narrow: go.dev/doc/comment#... This works well for small, well-maintained libraries. For larger codebases, function comments should explain why a function exists and when it's needed, not just what it does.

Link: Go Doc Comments - The Go Programming Language (go.dev/doc/comment#func)

1 likes, 0 reposts, 1 replies

3 Next post4 More from @konradreiche.comBackBluesky home
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup