Documentation
¶
Index ¶
- Variables
- func Export(s *twik.Scope, fm FuncMap)
- func Format(name string, v interface{}) string
- func Func(name string, f interface{}) func([]interface{}) (interface{}, error)
- type Executer
- func (e *Executer) Create(key string, fn interface{}) error
- func (e *Executer) Exec(file string) (s *twik.Scope, err error)
- func (e *Executer) ExecString(name, code string) (s *twik.Scope, err error)
- func (e *Executer) Get(key string) (interface{}, error)
- func (e *Executer) Has(key string) bool
- func (e *Executer) Override(key string, fn interface{}) error
- func (e *Executer) Scope() *twik.Scope
- func (e *Executer) Set(key string, value interface{}) error
- type FuncMap
- type LoaderFunc
- type TypeError
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFuncExists = errors.New("cannot set variable with name of existing function")
Functions ¶
Types ¶
type Executer ¶
func New ¶
func New(loader LoaderFunc) *Executer
func (*Executer) ExecString ¶
type LoaderFunc ¶
Click to show internal directories.
Click to hide internal directories.