context.go: added exists return value to the GetFuncInfo()

This commit is contained in:
Celestino Amoroso 2024-04-26 04:28:50 +02:00
parent 75c0c0f681
commit ebb2811ed3

View File

@ -36,7 +36,7 @@ type ExprContext interface {
setVar(varName string, value any)
EnumVars(func(name string) (accept bool)) (varNames []string)
EnumFuncs(func(name string) (accept bool)) (funcNames []string)
GetFuncInfo(name string) ExprFunc
GetFuncInfo(name string) (item ExprFunc, exists bool)
Call(name string, args []any) (result any, err error)
RegisterFunc(name string, f Functor, minArgs, maxArgs int)
}