We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16131b1 commit 261808bCopy full SHA for 261808b
expr.go
@@ -44,9 +44,10 @@ func Env(i interface{}) conf.Option {
44
}
45
46
47
-func Operator(operator string, fns ...string) conf.Option {
+// Operator allows to override binary operator with function.
48
+func Operator(operator string, fn ...string) conf.Option {
49
return func(c *conf.Config) {
- c.Operators[operator] = append(c.Operators[operator], fns...)
50
+ c.Operators[operator] = append(c.Operators[operator], fn...)
51
52
53
0 commit comments