go_engine

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoEngine

type GoEngine struct {
	Template *template.Template
	// contains filtered or unexported fields
}

func NewGoEngine

func NewGoEngine() *GoEngine

func (*GoEngine) AddFunctionMap

func (e *GoEngine) AddFunctionMap(functionMap template.FuncMap)

func (*GoEngine) Parse

func (e *GoEngine) Parse(renderables []Renderable) error

func (*GoEngine) RenderAll

func (e *GoEngine) RenderAll(renderables []Renderable, writer io.Writer) error

func (*GoEngine) RenderOne

func (e *GoEngine) RenderOne(renderable Renderable, writer io.Writer) error

type Renderable

type Renderable interface {
	TemplateName() string
	Template() string
	Context() interface{}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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