Versions in this module Expand all Collapse all v0 v0.9.9 Mar 13, 2024 Changes in this version + type IndexConfig struct + AuthorEmail string + AuthorName string + DocType string + Highlighter string + HomePage string + ImageDir string + Title string + TocLevels int + TocTitle string + Version string + type Producer struct + func NewProducer() *Producer + func (p *Producer) CreateTemplateWithOverrides() *Template + func (p *Producer) EnableMacro() *Producer + func (p *Producer) Generate() + func (p *Producer) Include(path ...string) *Producer + func (p *Producer) IncludeInternal() *Producer + func (p *Producer) IncludeTest() *Producer + func (p *Producer) IncludeUnderScoreDirectories() *Producer + func (p *Producer) IndexConfig(overrides string) *Producer + func (p *Producer) Module(path string) *Producer + func (p *Producer) NoIndex() *Producer + func (p *Producer) NoToc() *Producer + func (p *Producer) NonExported() *Producer + func (p *Producer) Outfile(path string) *Producer + func (p *Producer) Override(name, template string) *Producer + func (p *Producer) OverrideFilePath(name, path string) *Producer + func (p *Producer) PackageDoc(filepath ...string) *Producer + func (p *Producer) StdOut() *Producer + func (p *Producer) Writer(w io.Writer) *Producer + type Template struct + Templates map[string]*TemplateAndText + func NewTemplateWithOverrides(overrides map[string]string) *Template + func (t *Template) NewContext(f *goparser.GoFile) *TemplateContext + func (t *Template) NewContextWithConfig(f *goparser.GoFile, p *goparser.GoPackage, config *TemplateContextConfig) *TemplateContext + type TemplateAndText struct + Template *template.Template + Text string + type TemplateContext struct + Config *TemplateContextConfig + ConstAssignment *goparser.GoAssignment + Docs map[string]string + File *goparser.GoFile + Function *goparser.GoStructMethod + Index *IndexConfig + Interface *goparser.GoInterface + Module *goparser.GoModule + Package *goparser.GoPackage + Receiver []*goparser.GoStructMethod + Struct *goparser.GoStruct + TypeDefFunc *goparser.GoMethod + TypeDefVar *goparser.GoCustomType + VarAssignment *goparser.GoAssignment + func (t *TemplateContext) Clone(clean bool) *TemplateContext + func (t *TemplateContext) Creator() *Template + func (t *TemplateContext) DefaultIndexConfig(overrides string) *IndexConfig + func (t *TemplateContext) RenderConstDeclaration(wr io.Writer, a *goparser.GoAssignment) *TemplateContext + func (t *TemplateContext) RenderConstDeclarations(wr io.Writer) *TemplateContext + func (t *TemplateContext) RenderFunction(wr io.Writer, f *goparser.GoStructMethod) *TemplateContext + func (t *TemplateContext) RenderFunctions(wr io.Writer) *TemplateContext + func (t *TemplateContext) RenderImports(wr io.Writer) *TemplateContext + func (t *TemplateContext) RenderIndex(wr io.Writer, ic *IndexConfig) *TemplateContext + func (t *TemplateContext) RenderInterface(wr io.Writer, i *goparser.GoInterface) *TemplateContext + func (t *TemplateContext) RenderInterfaces(wr io.Writer) *TemplateContext + func (t *TemplateContext) RenderPackage(wr io.Writer) *TemplateContext + func (t *TemplateContext) RenderPrivate() *TemplateContext + func (t *TemplateContext) RenderReceiverFunctions(wr io.Writer, receiver string) *TemplateContext + func (t *TemplateContext) RenderStruct(wr io.Writer, s *goparser.GoStruct) *TemplateContext + func (t *TemplateContext) RenderStructs(wr io.Writer) *TemplateContext + func (t *TemplateContext) RenderTypeDefFunc(wr io.Writer, td *goparser.GoMethod) *TemplateContext + func (t *TemplateContext) RenderTypeDefFuncs(wr io.Writer) *TemplateContext + func (t *TemplateContext) RenderVarDeclaration(wr io.Writer, a *goparser.GoAssignment) *TemplateContext + func (t *TemplateContext) RenderVarDeclarations(wr io.Writer) *TemplateContext + func (t *TemplateContext) RenderVarTypeDef(wr io.Writer, td *goparser.GoCustomType) *TemplateContext + func (t *TemplateContext) RenderVarTypeDefs(wr io.Writer) *TemplateContext + type TemplateContextConfig struct + IncludeMethodCode bool + PackageOverviewPaths []string + Private bool + type TemplateType string + const ConstDeclarationTemplate + const ConstDeclarationsTemplate + const CustomFuncTypeDefTemplate + const CustomFuncTypeDefsTemplate + const CustomVarTypeDefTemplate + const CustomVarTypeDefsTemplate + const FunctionTemplate + const FunctionsTemplate + const ImportTemplate + const IndexTemplate + const InterfaceTemplate + const InterfacesTemplate + const PackageTemplate + const ReceiversTemplate + const StructTemplate + const StructsTemplate + const VarDeclarationTemplate + const VarDeclarationsTemplate + func (tt TemplateType) String() string v0.4.8-sprig Mar 13, 2024