backend

package
v0.4.2-0...-ae8ecb7 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(funcName string, backend TemplateFunc)

Register registers a named backend. The function parameters will be matched in the =% %= tags of backend specification.

func Visit

func Visit(visitor func(funcName string, backend TemplateFunc))

Visit visits all the backends. The visitor is a function that is given a view of a function name bound to a generator function

Types

type ExecFunc

type ExecFunc func(script string) error

ExecFunc is the function of that backend that actually does work.

type TemplateFunc

type TemplateFunc func(scope scope.Scope, trial bool, opt ...interface{}) (ExecFunc, error)

TemplateFunc is the type of function exported / available to the scripting template

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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