Reactive and Embeddable rules engine library written in pure Go!.
This rules engine has been thought to trigger automatically an event letting you know that a condition from your ruleset has been satisfied by some updated fact into your context.
The evaluation algorithm is RETE based with focus on evaluation and memory using a Trie struct to improve its performance.
The rule engines expose different data types to work with:
- String: This is a well known
stringtype - Number: A number is a representation of an integer value. In this case is a wrapper for a
int64data type - Float: Floats are also numeric types. They represent the decimal numbers implemented as
float64 - Boolean: The boolean are useful to assert a condition as
trueorfalse - Date: Represents a
time.Timedata type
For more details, please read the documentation
To install the library into your project please run:
go install github.com/darksubmarine/goldfish-re