Documentation
¶
Overview ¶
Package ext contains some useful extension operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddOpRange ¶
AddOpRange adds "range" operation to the JSONLogic instance. The op accept 1 to 3 numeric params and generate a range of numbers, examples:
- {"range":null} -> []
- {"range":0} -> []
- {"range":2} -> [0,1]
- {"range":-2} -> [0,-1]
- {"range":[3,6]} -> [3,4,5]
- {"range":[6,3]} -> [6,5,4]
- {"range":[3,6,2]} -> [3,5]
- {"range":[6,3,-2]} -> [6,4]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.