I think the best we can do at the moment is runtime expression evaluation with something like this:
https://github.com/expr-lang/expr
or this: https://github.com/Knetic/govaluate
I think the best we can do at the moment is runtime expression evaluation with something like this:
https://github.com/expr-lang/expr
or this: https://github.com/Knetic/govaluate