upvote
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.

reply