funcs-math.go registered as 'math.arith'
This commit is contained in:
parent
8ad25afdc4
commit
4f05e5c90a
@ -108,3 +108,7 @@ func ImportMathFuncs(ctx ExprContext) {
|
|||||||
ctx.RegisterFunc("add", &simpleFunctor{f: addFunc}, 0, -1)
|
ctx.RegisterFunc("add", &simpleFunctor{f: addFunc}, 0, -1)
|
||||||
ctx.RegisterFunc("mul", &simpleFunctor{f: mulFunc}, 0, -1)
|
ctx.RegisterFunc("mul", &simpleFunctor{f: mulFunc}, 0, -1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
registerImport("math.arith", ImportMathFuncs)
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user