template

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 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 Executer

type Executer interface {
	// Execute parses and executes a string template against the specified
	// data object, returning the output string.
	Execute(template string, data any) (string, error)
}

Executer is an interface for template execution.

func New

func New() Executer

New returns a new template execer to execute templates.

Jump to

Keyboard shortcuts

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