diegoholiveira / jsonlogic

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

implement AddOperator method #46

Closed yy-dev7 closed 3 years ago

yy-dev7 commented 3 years ago

This pull request adds a new method AddOperator for custom operator, Like: http://jsonlogic.com/add_operation.html

diegoholiveira commented 3 years ago

Hey @mervynyang. Thanks for implementing this method. Can you provide some documentation about it in the README? It would be awesome.

codecov[bot] commented 3 years ago

Codecov Report

Merging #46 (a477834) into master (f782605) will increase coverage by 0.03%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #46      +/-   ##
==========================================
+ Coverage   95.78%   95.81%   +0.03%     
==========================================
  Files           9        9              
  Lines         664      669       +5     
==========================================
+ Hits          636      641       +5     
  Misses         15       15              
  Partials       13       13              
yy-dev7 commented 3 years ago

I add an example and some comments in README 😄

diegoholiveira commented 3 years ago

I add an example and some comments in README 😄

Awesome. Thanks mate :)