templates

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package templates stores and provides basic templates for mails or CLI.

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