emailtemplates

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

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

Go to latest
Published: Jul 17, 2018 License: MIT Imports: 10 Imported by: 0

README

go-email-templates

TODO:

  • structs for template and message
  • Go template that can be populated with filesystem data to generate .go file with template vars inside.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteTemplates

func WriteTemplates(w io.Writer, baseName, templateDir, packageName string, verbose bool) error

func WriteTemplatesToFile

func WriteTemplatesToFile(fileName, templateDir, packageName string, verbose bool) error

Types

type RawTemplate

type RawTemplate struct {
	Name    string
	Subject string
	Text    string
	HTML    string
}

type TemplatesFile

type TemplatesFile struct {
	PackageName string
	TemplateDir string
	File        string
	Templates   []RawTemplate
}

func (TemplatesFile) Render

func (tf TemplatesFile) Render(w io.Writer, verbose bool) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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