Versions in this module Expand all Collapse all v0 v0.0.1 Aug 17, 2022 Changes in this version + var IllegalPrefixes = []string + func Synopsis(s string) string + func ToHTML(w io.Writer, text string, words map[string]string) + func ToText(w io.Writer, text string, indent, preIndent string, width int) + type Example struct + Code ast.Node + Comments []*ast.CommentGroup + Doc string + EmptyOutput bool + Name string + Order int + Output string + Play *ast.File + func Examples(files ...*ast.File) []*Example + type Filter func(string) bool + type Func struct + Decl *ast.FuncDecl + Doc string + Level int + Name string + Orig string + Recv string + type Mode int + const AllDecls + const AllMethods + type Note struct + Body string + End token.Pos + Pos token.Pos + UID string + type Package struct + Bugs []string + Consts []*Value + Doc string + Filenames []string + Funcs []*Func + ImportPath string + Imports []string + Name string + Notes map[string][]*Note + Types []*Type + Vars []*Value + func New(pkg *ast.Package, importPath string, mode Mode) *Package + func (p *Package) Filter(f Filter) + type Type struct + Consts []*Value + Decl *ast.GenDecl + Doc string + Funcs []*Func + Methods []*Func + Name string + Vars []*Value + type Value struct + Decl *ast.GenDecl + Doc string + Names []string