Open Source Go
Rules Engine

Get started with GoRules for Go in few simple steps

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})
}

STEP 1

Install the ZEN Engine

Start by installing the Go package in your project.

STEP 2

Create a decision

Create a decision using business rules engine platform by following the guide.

STEP 3

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.

Get started with GoRules

Need help?

Get in touch for enterprise consultancy and support

Start integrating

Integrate in as little as 10 minutes with our evaluation API