Documentation
¶
Overview ¶
Package jsonlogic is a lightweight rule engine that uses the syntax defined on jsonlogic.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddOperation ¶
AddOperation allows you to add a custom operation that will run a Go function. The `implementation` must be an `Operation`. See type definition.
func Apply ¶
Apply takes in a rule and an optional data object and applies its logic. Parameters are passed as strings and will be unmarshalled.
func ApplyJSONInterfaces ¶
func ApplyJSONInterfaces(inputs ...interface{}) (interface{}, error)
ApplyJSONInterfaces takes a rule and an optional data object and applies its logic. The parameters are unmarshalled JSON interfaces. Note this is not meant to be used with any other types except an interface{} generated by Go's Unmarshal method.
Types ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.