template

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 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 Template

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

func New

func New() *Template

func (*Template) Execute

func (t *Template) Execute(v any, content string) (string, error)

func (*Template) ExecuteContent

func (t *Template) ExecuteContent(writer io.Writer, v any, content []byte) error

func (*Template) Reset

func (t *Template) Reset()

func (*Template) SetDelims

func (t *Template) SetDelims(left, right string)

func (*Template) SetSprigFuncs

func (t *Template) SetSprigFuncs()

Jump to

Keyboard shortcuts

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