templates

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTemplate

func GetTemplate(templateName KnownTemplate) (*template.Template, error)

GetTemplate returns a cached template instance according to the template name

Types

type CachedTemplate

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

CachedTemplate represents a cached template

type KnownTemplate

type KnownTemplate string
const (
	TEMPLATE_VERIFY_EMAIL                   KnownTemplate = "email/verify_email"
	TEMPLATE_PASSWORD_RESET                 KnownTemplate = "email/password_reset"
	SYSTEM_PROMPT_RECEIPT_IMAGE_RECOGNITION KnownTemplate = "prompt/receipt_image_recognition"
)

Known templates

Jump to

Keyboard shortcuts

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