Impemented Typer interface

This commit is contained in:
2024-07-13 17:14:25 +02:00
parent e69dad5fb5
commit 06373f5126
3 changed files with 9 additions and 0 deletions
+4
View File
@@ -14,6 +14,10 @@ func NewGolangFunctor(f FuncTemplate) *golangFunctor {
return &golangFunctor{f: f}
}
func (functor *golangFunctor) TypeName() string {
return "GoFunctor"
}
func (functor *golangFunctor) Invoke(ctx ExprContext, name string, args []any) (result any, err error) {
return functor.f(ctx, name, args)
}