templcomponents

package module
v0.0.0-...-ed642b8 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTemplateExecution = errors.New("error executing template")

ErrTemplateExecution is returned when a template fails to execute

Functions

This section is empty.

Types

type Component

type Component struct {
	Name     string
	Template *template.Template
}

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func New

func New() *Registry

func (*Registry) Add

func (r *Registry) Add(c Component)

func (*Registry) Convert

func (r *Registry) Convert(content string) (string, error)

Jump to

Keyboard shortcuts

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