rules

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All added in v0.4.0

func All() []rule.Rule

All returns all registered rules.

func ByID added in v0.5.0

func ByID(id string) func(rule.Rule) bool

ByID returns a predicate matching rules by ID.

func Find added in v0.5.0

func Find[T rule.Rule](predicate func(rule.Rule) bool) (T, bool)

Find returns the first rule of type T matching the predicate. If predicate is nil, returns the first rule of type T.

func Where added in v0.5.0

func Where[T rule.Rule](predicate func(rule.Rule) bool) []T

Where returns rules of type T matching the predicate. If predicate is nil, returns all rules of type T.

Types

This section is empty.

Jump to

Keyboard shortcuts

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