Versions in this module Expand all Collapse all v0 v0.0.0 Dec 20, 2023 Changes in this version + type EvaluatorFunc func(paramValue string) bool + func MustNewEvaluatorFromRegexp(expr string) EvaluatorFunc + func NewEvaluatorFromRegexp(expr string) (EvaluatorFunc, error) + type Macro struct + Evaluator EvaluatorFunc + func (m *Macro) RegisterFunc(funcName string, fn interface{}) + type Map struct + Alphabetical *Macro + File *Macro + Int *Macro + Path *Macro + String *Macro + func NewMap() *Map + func (m *Map) Lookup(typ ast.ParamType) *Macro + type ParamEvaluatorBuilder func([]ast.ParamFuncArg) EvaluatorFunc + type ParamFunc struct + Func ParamEvaluatorBuilder + Name string + type Template struct + Params []TemplateParam + Src string + func Parse(src string, macros *Map) (*Template, error) + type TemplateParam struct + ErrCode int + Funcs []EvaluatorFunc + Name string + Src string + Type ast.ParamType + TypeEvaluator EvaluatorFunc