go1.20.5
GoThrough

comment.Block

// A Block is block-level content in a doc comment, // one of [*Code], [*Heading], [*List], or [*Paragraph]. type Block interface {}

comment.Text

// A Text is text-level content in a doc comment, // one of [Plain], [Italic], [*Link], or [*DocLink]. type Text interface {}

comment.DefaultLookupPackage

// DefaultLookupPackage is the default package lookup // function, used when [Parser].LookupPackage is nil. // It recognizes names of the packages from the standard // library with single-element import paths, such as math, // which would otherwise be impossible to name. // // Note that the go/doc package provides a more sophisticated // lookup based on the imports used in the current package. func DefaultLookupPackage(name string) (importPath string, ok bool)