Documentation ¶
Overview ¶
Package doc provides a mockable wrapper for go/doc.
Index ¶
- type Impl
- func (*Impl) Examples(testFiles ...*ast.File) []*doc.Example
- func (*Impl) IsPredeclared(s string) bool
- func (*Impl) New(pkg *ast.Package, importPath string, mode doc.Mode) *doc.Package
- func (*Impl) NewFromFiles(fset *token.FileSet, files []*ast.File, importPath string, opts ...any) (*doc.Package, error)
- func (*Impl) Synopsis(s string) string
- func (*Impl) ToHTML(w io.Writer, text string, words map[string]string)
- func (*Impl) ToText(w io.Writer, text string, indent string, preIndent string, width int)
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Impl ¶
type Impl struct{}
func (*Impl) IsPredeclared ¶
func (*Impl) NewFromFiles ¶
type Interface ¶
type Interface interface { Examples(testFiles ...*ast.File) []*doc.Example IsPredeclared(s string) bool New(pkg *ast.Package, importPath string, mode doc.Mode) *doc.Package NewFromFiles(fset *token.FileSet, files []*ast.File, importPath string, opts ...any) (*doc.Package, error) Synopsis(s string) string ToHTML(w io.Writer, text string, words map[string]string) ToText(w io.Writer, text string, indent string, preIndent string, width int) }
Click to show internal directories.
Click to hide internal directories.