diegoholiveira / jsonlogic

Go Lang implementation of JsonLogic
MIT License
159 stars 49 forks source link

Is it possible to add custom operator? #39

Closed huangjunwen closed 4 years ago

huangjunwen commented 4 years ago

I think it would be very useful if adding custom operator is supported.

Like: http://jsonlogic.com/add_operation.html

diegoholiveira commented 4 years ago

@huangjunwen sure, if you add it, we can remove some custom things that we add it to solve internal problems. Can you provide a PR? It will be awesome :)

huangjunwen commented 4 years ago

@diegoholiveira after a few days' investigation and experiments, i end up reinvent the wheel myself to fulfill this and some other requirments as well. Much inspiration from your library though :-) Thanks a lot!

diegoholiveira commented 4 years ago

awesome work @huangjunwen

I'll close this issue