template

package
v0.0.0-...-5b6bd79 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2019 License: Apache-2.0 Imports: 10 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetRegistry

type AssetRegistry struct {
}

func (*AssetRegistry) Get

func (a *AssetRegistry) Get(name string) (Template, bool)

type Registry

type Registry interface {
	Get(string) (Template, bool)
}

type Template

type Template struct {
	Name    string
	Subject string
	Body    string
	Headers string
}

func (Template) Render

func (t Template) Render(vars map[string]interface{}) (subject string, body string, headers map[string]string, err error)

Jump to

Keyboard shortcuts

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