basic

command
v2.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 2 Imported by: 0

README

👶 Basic Example

This example is the ideal starting point for understanding how to use the rules engine. It simulates a simple age check.

Concepts Illustrated

  • Rule: Definition of a rule with conditions and actions.
  • Condition: Use of an operator (greater_than) to compare a fact (age) to a static value (18).
  • Almanac: Injection of contextual data for evaluation.
  • Event: Triggering of specific messages on success or failure of the rule.

Execution

go run main.go

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL