template

package
v0.2.21 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: Apache-2.0 Imports: 18 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor interface {
	ExecuteWithContext(ctx context.Context, t Preparer, wr io.Writer, data any) error
}

type Fs

type Fs interface {
	WalkLayouts(start string, cb fs.WalkCallback, conf fs.WalkwayConfig) error
}

type Identity

type Identity interface {
	IdentifierBase() string
}

type Info

type Info interface {
	ParseInfo() ParseInfo
}

type Lookup

type Lookup interface {
	LookupLayout(names []string) (Preparer, bool, error)
	GetFunc(name string) (reflect.Value, bool)
}

type ParseInfo

type ParseInfo interface {
	Return() bool
	Inner() bool
}

type Preparer

type Preparer interface {
	Name() string
	template.Preparer
}

type Service

type Service interface {
	Execute(ctx context.Context, name string, data any) (tmpl string, res string, err error)
}

type Template

type Template interface {
	Executor
	Lookup
}

type Type

type Type int
const (
	TypeUndefined Type = iota
	TypeShortcode
	TypePartial
)

type Variants

type Variants struct {
	Language     string
	OutputFormat output.Format
}

Variants describes the possible variants of a template. All of these may be empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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