internal

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Templater

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

A Templater provides templating functionality

func NewTemplater

func NewTemplater(tmplName, templateDoc string, funcs map[string]interface{}, useSafeYAMLTemplater bool) (*Templater, error)

func (*Templater) Execute

func (t *Templater) Execute(wr io.Writer, data any) error

Execute executes the template rendering.

func (*Templater) Option

func (t *Templater) Option(opt ...string) *Templater

Option sets an option on the underlying Templater.

Jump to

Keyboard shortcuts

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