Documentation ¶
Index ¶
- Variables
- func Input(input string) (ret map[string]interface{}, err error)
- func InputFile(input string) (ret map[string]interface{}, err error)
- func Parse(source string) (code []byte, err error)
- func Subst(text string, lang interface{}) string
- type Type
- func (p Type) Execute(source string, fname string, output string) (err error)
- func (p Type) ExecuteDir(global map[string]interface{}, source, output string) (err error)
- func (p Type) ExecuteFile(source, output string) (err error)
- func (p Type) Imports() string
- func (p Type) Subst(text string) string
- func (p Type) Var(name string, defval interface{}) interface{}
- type Variables
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrEndRequired is returned if eql script doesn't end by `%>`. ErrEndRequired = errors.New("eql script requires `%>` to end") // ErrEndOfString is returned if string doesn't end. ErrEndOfString = errors.New("string doesn't end") )
View Source
var Exports = map[string]interface{}{ "new": New, "parse": Parse, "subst": Subst, "input": Input, "inputFile": InputFile, "New": New, "Parse": Parse, "Subst": Subst, "Input": Input, "InputFile": InputFile, "ErrEndRequired": ErrEndRequired, "ErrEndOfString": ErrEndOfString, }
Exports is the export table of this module.
Functions ¶
Types ¶
type Type ¶
type Type struct {
Impl qlang
}
A Type is a eql script engine.
func (Type) ExecuteDir ¶
ExecuteDir executes a eql template directory.
func (Type) ExecuteFile ¶
ExecuteFile executes a eql template file.
Click to show internal directories.
Click to hide internal directories.