funcs_template

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 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 FuncsTemplate

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

func NewFuncsTemplate

func NewFuncsTemplate(ctx context.Context, template *template.Template, subContextCreator SubContextCreator) *FuncsTemplate

func (*FuncsTemplate) FuncMap

func (f *FuncsTemplate) FuncMap() template.FuncMap

type SubContextCreator

type SubContextCreator func(parentContext interface{}) (templateName string, subContext interface{}, revert func(), err error)

Jump to

Keyboard shortcuts

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