expr-lang / expr

Expression language and expression evaluation for Go
https://expr-lang.org
MIT License
5.85k stars 378 forks source link

Can expr support custom function? #656

Open imqishi opened 1 month ago

imqishi commented 1 month ago

Now there are many defined operators and functions, does it support user-defined comparison operations?

antonmedv commented 1 month ago

Yes, https://pkg.go.dev/github.com/expr-lang/expr#Operator

imqishi commented 1 month ago

Yes, https://pkg.go.dev/github.com/expr-lang/expr#Operator

wow, that's cool, thank you!