Add the float cast function to workflow gval handlers

This commit is contained in:
Tomaž Jerman
2023-01-20 11:52:36 +01:00
parent b3d53b9a38
commit 38b6cb35e7
+2
View File
@@ -5,6 +5,7 @@ import (
"math/rand"
"github.com/PaesslerAG/gval"
"github.com/cortezaproject/corteza/server/pkg/gvalfnc"
"github.com/pkg/errors"
"github.com/spf13/cast"
)
@@ -24,6 +25,7 @@ func NumericFunctions() []gval.Language {
gval.Function("average", average),
gval.Function("random", random),
gval.Function("int", toInt64),
gval.Function("float", gvalfnc.CastFloat),
}
}