Skip to content
public-library›Rules›Go›Give exported Go identifiers and non-obvious functions doc comments stating their intent

Give exported Go identifiers and non-obvious functions doc comments stating their intent

Versions

A version describes what work must do to comply with the rule. Major: work that complied with the previous version could fail this one. Minor: it still complies, and this version adds guidance. Patch: it still complies, and nothing is added. How versions work

  • 1.0.1

    Latestrelease/162 Dec 2026
    Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
  • 1.0.0

    release/114 Nov 2026
    New rule: exported Go identifiers and unexported functions whose intent isn't apparent get a doc comment that starts with the name and states its intent and the guarantees callers rely on; main packages get a command comment.