utl

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TemplateFuncs template.FuncMap
View Source
var Views embed.FS

Functions

func GetTemplates

func GetTemplates() (*template.Template, error)

Types

type DebugTemplateExecutor

type DebugTemplateExecutor struct {
	Glob []string
}

func (DebugTemplateExecutor) ExecuteTemplate

func (e DebugTemplateExecutor) ExecuteTemplate(wr io.Writer, name string, data interface{}) error

type ReleaseTemplateExecutor

type ReleaseTemplateExecutor struct {
	Template *template.Template
}

func (ReleaseTemplateExecutor) ExecuteTemplate

func (e ReleaseTemplateExecutor) ExecuteTemplate(wr io.Writer, name string, data interface{}) error

type TemplateExecutor

type TemplateExecutor interface {
	ExecuteTemplate(wr io.Writer, name string, data interface{}) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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