Go stdlib package — go/doc/comment. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
.DefaultLookupPackage()NeutralDefaultLookupPackage(name string) (string, bool)
DefaultLookupPackage is the default package lookup
.DocLink.DefaultURL()NeutralDocLink.DefaultURL(baseURL string) string
DefaultURL constructs and returns the documentation URL for l,
.Heading.DefaultID()NeutralHeading.DefaultID() string
DefaultID returns the default anchor ID for the heading h.
.List.BlankBefore()NeutralList.BlankBefore() bool
BlankBefore reports whether a reformatting of the comment
.List.BlankBetween()NeutralList.BlankBetween() bool
BlankBetween reports whether a reformatting of the comment
.Parser.Parse()NeutralParser.Parse(text string) *Doc
Parse parses the doc comment text and returns the *Doc form.
.Printer.Comment()NeutralPrinter.Comment(d *Doc) []byte
Comment returns the standard Go formatting of the Doc,
.Printer.HTML()NeutralPrinter.HTML(d *Doc) []byte
HTML returns an HTML formatting of the Doc.
.Printer.Markdown()NeutralPrinter.Markdown(d *Doc) []byte
Markdown returns a Markdown formatting of the Doc.
.Printer.Text()NeutralPrinter.Text(d *Doc) []byte
Text returns a textual formatting of the Doc.
| FQN | Field | |
|---|---|---|
| go/doc/comment | fqns[0] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
// standard library — no go.mod entry required
from codepathfinder.go_rule import ... # go/doc/comment