custom-operator

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: 3 Imported by: 0

README

⚙️ Custom Operators Example

The engine comes with 11 default operators, but you can easily add your own operators to meet your specific business needs.

Features Illustrated

  • Operator Interface: How to implement your own evaluator.
  • gre.RegisterOperator: Global registration of new operators.
  • Operators created in this example:
    • starts_with: Checks if a string starts with a prefix.
    • ends_with: Checks if a string ends with a suffix.
    • between: Checks if a number is within a range [min, max].

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