Registry / utility / hyperjumptech-grule-rule-engine

hyperjumptech-grule-rule-engine

JSON →
library1.20.4gogounverified

A rule engine for Go based on the Rete algorithm, allowing rule-based logic execution.

go get github.com/hyperjumptech/grule-rule-engine
INSTALL
IMPORT
SIG · HYPERJUMPTECH-GRUL
H
hyperjumptech-grule-rule-engine
utilitygov1.20.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

grule
✓ github.com/hyperjumptech/grule-rule-engine

Builds and executes a simple rule using Grule.

package main import ( "github.com/hyperjumptech/grule-rule-engine/ast" "github.com/hyperjumptech/grule-rule-engine/builder" "github.com/hyperjumptech/grule-rule-engine/engine" "github.com/hyperjumptech/grule-rule-engine/pkg" ) func main() { knowledgeBase := ast.NewKnowledgeBase("Test", "0.1.0") ruleBuilder := builder.NewRuleBuilder(knowledgeBase) ruleBuilder.BuildRuleFromResource("rule \"test\" { when true then Retract(\"test\"); }") engine := engine.NewGruleEngine() dataContext := ast.NewDataContext() engine.Execute(dataContext, knowledgeBase) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.20.4latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
18
Bingbot
1
Resources
hyperjumptech-grule-rule-engine — go get hyperjumptech-grule-rule-engine · libregistry