Give exported Go identifiers and non-obvious functions doc comments stating their intent
In cart Checkout
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
- 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.