templator

package
v0.1.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TemplateWorker

type TemplateWorker struct {
	// contains filtered or unexported fields
}

func New

func New(name string, tpl string, formatCode bool) *TemplateWorker

func (*TemplateWorker) ChangeCodeFormatOption

func (t *TemplateWorker) ChangeCodeFormatOption(formatCode bool)

func (*TemplateWorker) ChangeTemplateOption

func (t *TemplateWorker) ChangeTemplateOption(tpl string)

func (*TemplateWorker) Execute

func (t *TemplateWorker) Execute(ctxValue any) (*bytes.Buffer, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL