go_blueberry

package module
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: GPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleContactFormRequest added in v0.0.16

func HandleContactFormRequest[FormType any](mail Mail, templateCollection *template.Template, subjectTemplate string, emailTemplate string, thankYouTemplate string) http.HandlerFunc

func HtmlTemplateHandler added in v0.0.14

func HtmlTemplateHandler(pageTemplates *template.Template, template_path string, template_data any) http.HandlerFunc

func InitTemplates

func InitTemplates(templateFS embed.FS, templateBasePath string) *template.Template

Types

type Mail added in v0.0.12

type Mail struct {
	Sender       string
	SenderDomain string
	ApiKey       string
	Recipient    string
}

func (Mail) SendMail added in v0.0.12

func (m Mail) SendMail(subject, body string)

Jump to

Keyboard shortcuts

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