template

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompileOption

type CompileOption[T any] interface {
	ApplyTo(T)
}

CompileOption is the interface for compile options.

type LoadOption

type LoadOption[T any] interface {
	ApplyTo(T)
}

LoadOption is the interface for load options.

type Loader

type Loader[T any, U any] interface {
	LoadTemplate(context.Context, string, ...LoadOption[T]) (Template[U], error)
}

Loader is the interface for loading template.

type Template

type Template[T any] interface {
	Compile(...CompileOption[T]) string
}

Template is the interface for template.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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