From d92938872bc0ed55b7fd95cdca07c4b8f76ecef9 Mon Sep 17 00:00:00 2001 From: Frank Jogeleit Date: Wed, 7 Aug 2024 12:28:42 +0200 Subject: [PATCH] append default functions to function caller Signed-off-by: Frank Jogeleit --- pkg/interpreter/functions.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/interpreter/functions.go b/pkg/interpreter/functions.go index 6e32ff6..b63ad8d 100644 --- a/pkg/interpreter/functions.go +++ b/pkg/interpreter/functions.go @@ -24,6 +24,8 @@ type functionCaller struct { func NewFunctionCaller(funcs ...functions.FunctionEntry) *functionCaller { fTable := map[string]functionEntry{} + + funcs = append(functions.GetDefaultFunctions(), funcs...) for _, f := range funcs { fTable[f.Name] = functionEntry{ arguments: f.Arguments,