Versions in this module Expand all Collapse all go1 go1.18.10 Jan 10, 2023 Changes in this version + var IllegalPrefixes = []string + func IsPredeclared(s string) bool + 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 + Suffix string + Unordered bool + func Examples(testFiles ...*ast.File) []*Example + type Filter func(string) bool + type Func struct + Decl *ast.FuncDecl + Doc string + Examples []*Example + Level int + Name string + Orig string + Recv string + type Mode int + const AllDecls + const AllMethods + const PreserveAST + type Note struct + Body string + End token.Pos + Pos token.Pos + UID string + type Package struct + Bugs []string + Consts []*Value + Doc string + Examples []*Example + 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 NewFromFiles(fset *token.FileSet, files []*ast.File, importPath string, opts ...any) (*Package, error) + func (p *Package) Filter(f Filter) + type Type struct + Consts []*Value + Decl *ast.GenDecl + Doc string + Examples []*Example + Funcs []*Func + Methods []*Func + Name string + Vars []*Value + type Value struct + Decl *ast.GenDecl + Doc string + Names []string