templates

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(name string, data interface{}) (string, error)

Get computes the asked template with the data provided.

func Init

func Init()

Init compiles templates and panics if encountered an error. This method is called automatically one time by `Get`.

func MailConn

func MailConn() *mails.CustomClient

MailConn is a helper to return a new mail connection if available. The result is null if the mail server is not ready. Do not forget to defer the close operation!

Types

type VerificationMail

type VerificationMail struct {
	Token string
}

VerificationMail contains the token to be sent in the verification mail

Jump to

Keyboard shortcuts

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