doccomments

command
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2026 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command doccomments fails on comments and docs that break the house style, so godoc, editors and GitHub show them as written. In Go comments it fails on:

  • a top-level comment attached to no declaration, e.g. a doc comment split from its declaration by a blank line, of which godoc shows only the part next to the declaration
  • a character that isn't ASCII or in .vscode/maths.code-snippets, which includes em dashes
  • a semicolon in a prose line, as plain English has no place for one
  • an unpaired ', " or backtick on an indented line, which godoc shows as code, and which an editor's hover highlights as an unclosed literal

In markdown it fails on a character that isn't ASCII or in the snippets, anywhere, and on a semicolon in prose, outside code blocks and inline code.

It reads every .go and .md file outside hidden directories, temp and testdata.

go run ./cmd/doccomments

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL