Add the float cast function to workflow gval handlers
This commit is contained in:
parent
183690a61e
commit
0419d0240b
@ -6,6 +6,7 @@ import (
|
|||||||
"math/rand"
|
"math/rand"
|
||||||
|
|
||||||
"github.com/PaesslerAG/gval"
|
"github.com/PaesslerAG/gval"
|
||||||
|
"github.com/cortezaproject/corteza/server/pkg/gvalfnc"
|
||||||
"github.com/spf13/cast"
|
"github.com/spf13/cast"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -24,6 +25,7 @@ func NumericFunctions() []gval.Language {
|
|||||||
gval.Function("average", average),
|
gval.Function("average", average),
|
||||||
gval.Function("random", random),
|
gval.Function("random", random),
|
||||||
gval.Function("int", toInt64),
|
gval.Function("int", toInt64),
|
||||||
|
gval.Function("float", gvalfnc.CastFloat),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user