template

package
v0.16.3 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultLeftDelim  = "[["
	DefaultRightDelim = "]]"
)

Variables

View Source
var ErrNoMatches = errors.New("pattern matches no files")

Functions

This section is empty.

Types

type Option added in v0.3.0

type Option func(*Template)

func WithDelims added in v0.3.0

func WithDelims(left, right string) Option

type Template

type Template struct {
	*template.Template
}

func New

func New(name string, options ...Option) *Template

func (*Template) ParseFS added in v0.12.0

func (t *Template) ParseFS(fsys fs.FS, patterns ...string) (*template.Template, error)

func (*Template) ParseGlob added in v0.12.0

func (t *Template) ParseGlob(pattern string) (*template.Template, error)

func (*Template) ParsePath

func (t *Template) ParsePath(path string) (*template.Template, error)

func (*Template) ParsePaths

func (t *Template) ParsePaths(paths ...string) (*template.Template, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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