filter

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package filter provides generic key=value filtering for config structs using YAML round-trip. Structs are marshaled to YAML, unmarshaled to map[string]any, then queried with dot-path keys (e.g., "model.name").

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Match

func Match(v any, filters []string) (bool, error)

Match returns true if the struct matches all key=value filters. Keys use dot notation for nested fields (e.g., "model.name"). Values support wildcard patterns (e.g., "gpt*") and are matched case-insensitively.

Types

This section is empty.

Jump to

Keyboard shortcuts

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