package main
import (
"github.com/gorules/zen-go"
"os"
)
func main() {
engine := zen.NewEngine(zen.EngineConfig{})
graph, err := os.ReadFile("./jdm-graph.json")
if err != nil {
panic(err)
}
decision, err := engine.CreateDecision(graph)
if err != nil {
panic(err)
}
response, err := decision.Evaluate(map[string]any{"input": 15})
}
Install the ZEN Engine
Start by installing the Go package in your project.
Create a decision
Create a decision using business rules engine platform by following the guide.
Evaluate Business Rules
Integrate the in your codebase using library to receive decisions based on parameters.
High-Performance
Experience unprecedented speed in your Go applications with our Rust-core rules engine. Leveraging Rust's zero-cost abstractions and fearless concurrency, our engine brings near-native performance to your Go projects. Execute complex decision logic at blazing speeds, perfectly complementing Go's already impressive performance.
Idiomatic Go API
Experience the power of advanced rule processing through an intuitive, idiomatic Go API. Our rules engine provides a clean, Go-native interface that feels natural to Go developers. Simply import our package and start defining rules using familiar Go syntax. The API is designed to work harmoniously with Go's standard library and common patterns, making it a breeze to integrate into existing codebases.