driver

package
v0.0.0-...-fc73e00 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2016 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(d Driver)

Types

type BaseDriver

type BaseDriver struct {
	// contains filtered or unexported fields
}

func New

func New(name string, types map[string]string, files []string) BaseDriver

func (*BaseDriver) Appended

func (d *BaseDriver) Appended() bool

func (*BaseDriver) Execute

func (d *BaseDriver) Execute(w io.Writer, t string, data interface{}) error

func (*BaseDriver) Name

func (d *BaseDriver) Name() string

func (*BaseDriver) Parse

func (d *BaseDriver) Parse()

func (*BaseDriver) SetFuncs

func (d *BaseDriver) SetFuncs(f template.FuncMap)

func (*BaseDriver) Type

func (d *BaseDriver) Type(t string) string

func (*BaseDriver) Types

func (d *BaseDriver) Types() map[string]string

type Driver

type Driver interface {
	Name() string
	Type(string) string
	Types() map[string]string
	SetFuncs(template.FuncMap) // sets templates funcs
	Execute(io.Writer, string, interface{}) error
}

func Get

func Get(name string) (Driver, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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