Native Go Implementation
Pure Go bindings with CGO for optimal integration. No external processes or HTTP overhead.
GoRules Version 2 is here - redesigned, now with managed cloud.GoRules Version 2 is here!
Watch the launch videoWatchOpen source Go rules engine with native bindings. Thread-safe, high-performance business rule evaluation for Golang applications.
Install the SDK, load a decision graph, evaluate - the same JSON your team edits in the visual editor runs in your process.
go get github.com/gorules/zen-gopackage main
import (
"github.com/gorules/zen-go"
"os"
)
func main() {
engine := zen.NewEngine(zen.EngineConfig{})
graph, _ := os.ReadFile("./decision.json")
decision, _ := engine.CreateDecision(graph)
}result, _ := decision.Evaluate(map[string]any{
"customer": map[string]any{"tier": "premium", "country": "US"},
"cart": map[string]any{"total": 150, "items": 3},
})
fmt.Println(result.Result) // map[discount:15 freeShipping:true]Built for performance and developer experience - native speed with an API that feels at home in your codebase.
Pure Go bindings with CGO for optimal integration. No external processes or HTTP overhead.
Thread-safe engine designed for high-concurrency Go applications. Share one engine across goroutines.
Optimized for low memory overhead and minimal GC pressure in hot paths.
GoRules provides a production-ready business rules engine for Go applications. The SDK offers native bindings through CGO, connecting your Go code directly to our high-performance Rust core.
Designed for Go's concurrency model, the engine is fully thread-safe and can be shared across goroutines. This makes it perfect for high-throughput web services, microservices, and data processing pipelines where rule evaluation happens on every request.
The SDK supports all GoRules features including decision tables, expressions, and complex rule graphs. Decision definitions created in the visual editor work directly with the Go SDK, enabling business users to modify rules without code changes.
See the public Zen Engine benchmarksThe engine is open source and free forever - add the GoRules BRMS when your team needs versioning, approvals, and an audit trail.