Hacker News new | ask | show | jobs
by jryio 82 days ago
The godoc format enforces that the comment start with the name of the identifier and be a complete sentence(s) describing what that identifier does. Predates LLMs
1 comments

I wouldn't say it enforces that the comment start with the name of the identifier. Maybe certain linter options enforce that?

In https://go.dev/doc/comment it seems to be a convention, but there are a couple of examples there where the don't follow it.