RegisterFunc() also returns the funcInfo object

This commit is contained in:
2024-08-01 00:09:49 +02:00
parent 3c51b8d2ee
commit 075b0b5691
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -25,5 +25,5 @@ type ExprContext interface {
GetFuncInfo(name string) (item ExprFunc, exists bool)
Call(name string, args map[string]any) (result any, err error)
RegisterFuncInfo(info ExprFunc)
RegisterFunc(name string, f Functor, returnType string, param []ExprFuncParam) error
RegisterFunc(name string, f Functor, returnType string, param []ExprFuncParam) (funcInfo ExprFunc, err error)
}