tpl

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfirmAccount = iota
	ResetPassword
	EmailUpdate
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailRequest

type EmailRequest struct {
	From    string
	Subject string
	// contains filtered or unexported fields
}

EmailRequest struct

func (EmailRequest) Execute

func (er EmailRequest) Execute(templateData interface{}, wr io.Writer) error

type EmailTemplate

type EmailTemplate int

type Service

type Service struct {
	EmailRequestTemplate map[EmailTemplate]EmailRequest
}

func New

func New(filePath string) (Service, error)

New iterate over the list of html templates and parses them.

Jump to

Keyboard shortcuts

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