heartlhj / go-expression

GO语言EL表达式
MIT License
5 stars 2 forks source link

请问支持方法调用或者用户定义的函数吗 #2

Open Zhouchuanwen opened 3 years ago

Zhouchuanwen commented 3 years ago

类似 Spring EL 的方式:

ExpressionParser parser = new SpelExpressionParser(); Expression exp = parser.parseExpression("'Hello World'.concat('!')"); String message = (String) exp.getValue();

heartlhj commented 3 years ago

这个暂时不支持,之前没用到过这种方式。后面看一下