template

package
v1.0.16 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPattern = "*.tmpl"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	sync.RWMutex
	fs.FS
	*template.Template
	// contains filtered or unexported fields
}

func NewCache

func NewCache(dir fs.FS) (*Cache, error)

func (*Cache) Exec

func (this *Cache) Exec(w io.Writer, name string, v interface{}) error

func (*Cache) Lookup

func (this *Cache) Lookup(name string) (*template.Template, error)

func (*Cache) String

func (this *Cache) String() string

func (*Cache) Templates

func (this *Cache) Templates() []string

Jump to

Keyboard shortcuts

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