Versions in this module Expand all Collapse all v1 v1.1.2 Aug 23, 2020 v1.1.1 Feb 27, 2018 Changes in this version + var DefualtFuncMap = FuncMap + func ExistsFunc(fname string) bool + func GlobFunc(fname string) []string + func ImportFunc(fname string) string + type Document struct + func NewDocument(dir string, templ Template) (*Document, error) + func (d *Document) Description() string + func (d *Document) Examples() []*Example + func (d *Document) ImportPath() string + func (d *Document) IsCommand() bool + func (d *Document) Name() string + func (d *Document) Synopsis() string + func (d *Document) Usage() string + func (d *Document) WriteTo(w io.Writer) error + type Example struct + func NewExamples(fset *token.FileSet, examples ...*doc.Example) []*Example + func (e *Example) Code() string + func (e *Example) Doc() string + func (e *Example) Name() string + func (e *Example) Output() string + func (e *Example) Play() string + type FuncMap map[string]interface + type Template interface + Execute func(w io.Writer, data interface{}) error